From 4be6c8f8bd6bf8dc515af9c481629dc65f5f5602 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 29 Jul 2013 20:35:22 -0700 Subject: [PATCH] Cleanup/Autoformat --- .../phpunit/CRM/Report/Form/Contribute/DetailTest.php | 11 ++++++----- tests/phpunit/CiviTest/CiviReportTestCase.php | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php b/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php index c3f587440f..7bd2aab5d8 100644 --- a/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php +++ b/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php @@ -30,7 +30,7 @@ require_once 'CiviTest/CiviReportTestCase.php'; /** * Test report outcome * - * @package CiviCRM + * @package CiviCRM */ class CRM_Report_Form_Contribute_DetailTest extends CiviReportTestCase { static $_tablesToTruncate = array( @@ -52,7 +52,7 @@ class CRM_Report_Form_Contribute_DetailTest extends CiviReportTestCase { 'total_amount', ), 'filters' => array( - 'total_amount_op' => 'gte', + 'total_amount_op' => 'gte', 'total_amount_value' => 50, ), // FIXME: add filters @@ -67,10 +67,11 @@ class CRM_Report_Form_Contribute_DetailTest extends CiviReportTestCase { parent::setUp(); } - function tearDown() {} + function tearDown() { + } /** - * @dataProvider dataProvider + * @dataProvider dataProvider */ public function testReportOutput($reportClass, $inputParams, $dataSet, $expectedOutputCsvFile) { $this->foreignKeyChecksOff(); @@ -80,7 +81,7 @@ class CRM_Report_Form_Contribute_DetailTest extends CiviReportTestCase { $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}"); diff --git a/tests/phpunit/CiviTest/CiviReportTestCase.php b/tests/phpunit/CiviTest/CiviReportTestCase.php index 297f91e66e..4de7a44dd8 100644 --- a/tests/phpunit/CiviTest/CiviReportTestCase.php +++ b/tests/phpunit/CiviTest/CiviReportTestCase.php @@ -40,7 +40,7 @@ class CiviReportTestCase extends CiviUnitTestCase { $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; @@ -48,7 +48,7 @@ class CiviReportTestCase extends CiviUnitTestCase { $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'])) { -- 2.25.1