/**
* Test report outcome
*
- * @package CiviCRM
+ * @package CiviCRM
*/
class CRM_Report_Form_Contribute_DetailTest extends CiviReportTestCase {
static $_tablesToTruncate = array(
'total_amount',
),
'filters' => array(
- 'total_amount_op' => 'gte',
+ 'total_amount_op' => 'gte',
'total_amount_value' => 50,
),
// FIXME: add filters
parent::setUp();
}
- function tearDown() {}
+ function tearDown() {
+ }
/**
- * @dataProvider dataProvider
+ * @dataProvider dataProvider
*/
public function testReportOutput($reportClass, $inputParams, $dataSet, $expectedOutputCsvFile) {
$this->foreignKeyChecksOff();
$config = CRM_Core_Config::singleton();
CRM_Utils_File::sourceSQLFile($config->dsn, dirname(__FILE__) . "/{$dataSet}");
- $reportCsvFile = $this->getReportOutputAsCsv($reportClass, $inputParams);
+ $reportCsvFile = $this->getReportOutputAsCsv($reportClass, $inputParams);
$reportCsvArray = $this->getArrayFromCsv($reportCsvFile);
$expectedOutputCsvArray = $this->getArrayFromCsv(dirname(__FILE__) . "/{$expectedOutputCsvFile}");
$config = CRM_Core_Config::singleton();
$config->keyDisable = TRUE;
$controller = new CRM_Core_Controller_Simple($reportClass, ts('some title'));
- $reportObj =& $controller->_pages['Detail'];//FIXME - Detail is going to change
+ $reportObj =& $controller->_pages['Detail']; //FIXME - Detail is going to change
$tmpGlobals = array();
$tmpGlobals['_REQUEST']['force'] = 1;
$tmpGlobals['_SERVER']['QUERY_STRING'] = '';
if (!empty($inputParams['fields'])) {
$fields = implode(',', $inputParams['fields']);
- $tmpGlobals['_GET']['fld'] = $fields;
+ $tmpGlobals['_GET']['fld'] = $fields;
$tmpGlobals['_GET']['ufld'] = 1;
}
if (!empty($inputParams['filters'])) {