X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FReportTemplateTest.php;h=2fb02526511f90d98866bdc720ef0df2373cff66;hb=1fde2cb2799e9f9a55baa070584e0ee8d1360f5d;hp=2178aa95d3fe19d1acf54896b04fac821ec86b76;hpb=03298d98322f2da05e2ab30cb0e2d5b90df47ab3;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/ReportTemplateTest.php b/tests/phpunit/api/v3/ReportTemplateTest.php index 2178aa95d3..2fb0252651 100644 --- a/tests/phpunit/api/v3/ReportTemplateTest.php +++ b/tests/phpunit/api/v3/ReportTemplateTest.php @@ -40,11 +40,9 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { function setUp() { parent::setUp(); - $this->_sethtmlGlobals(); + $this->useTransaction(TRUE); } - function tearDown() {} - public function testReportTemplate() { $result = $this->callAPISuccess('ReportTemplate', 'create', array( 'label' => 'Example Form', @@ -174,21 +172,17 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase { also, type should be added to state province & others? & potentially getAddressColumns fn should be used per other reports', 'contribute/repeat' => 'Reports with important functionality in postProcess are not callable via the api. For variable setting recommend beginPostProcessCommon, for temp table creation recommend From fn', - 'contribute/organizationSummary' => 'Failure in api call for report_template getrows: Only variables should be assigned by reference line 381', - 'contribute/householdSummary' => '(see contribute/repeat) Undefined property: CRM_Report_Form_Contribute_HouseholdSummary::$householdContact LINE 260, property should be declared on class, for api accessibility should be set in beginPreProcess common', - 'contribute/topDonor' => 'construction of query in postprocess makes inaccessible ', + 'contribute/topDonor' => 'construction of query in postProcess makes inaccessible ', 'contribute/sybunt' => 'e notice - (ui gives fatal error at civicrm/report/contribute/sybunt&reset=1&force=1 e-notice is on yid_valueContribute/Sybunt.php(214) because at the force url "yid_relative" not "yid_value" is defined', 'contribute/lybunt' => 'same as sybunt - fatals on force url & test identifies why', - 'event/income' => 'I do no understant why but error is Call to undefined method CRM_Report_Form_Event_Income::from() in CRM/Report/Form.php on line 2120', + 'event/income' => 'I do no understand why but error is Call to undefined method CRM_Report_Form_Event_Income::from() in CRM/Report/Form.php on line 2120', 'contact/relationship' => '(see contribute/repeat), property declaration issue, Undefined property: CRM_Report_Form_Contact_Relationship::$relationType in /Contact/Relationship.php(486):', - 'activitySummary' => 'Undefined index: group_bys_freq m/ActivitySummary.php(191)', - 'event/incomesummary' => 'Undefined index: title, Report/Form/Event/IncomeCountSummary.php(187)', - 'logging/contact/summary' => '(likely to be test releated) probably logging off Undefined index: Form/Contact/LoggingSummary.php(231): PHP', - 'logging/contact/detail' => '(likely to be test releated) probably logging off DB Error: no such table', - 'logging/contribute/summary' => '(likely to be test releated) probably logging off DB Error: no such table', - 'logging/contribute/detail' => '(likely to be test releated) probably logging off DB Error: no such table', - 'survey/detail' => '(likely to be test releated) Undefined index: CiviCampaign civicrm CRM/Core/Component.php(196)', + 'logging/contact/summary' => '(likely to be test related) probably logging off Undefined index: Form/Contact/LoggingSummary.php(231): PHP', + 'logging/contact/detail' => '(likely to be test related) probably logging off DB Error: no such table', + 'logging/contribute/summary' => '(likely to be test related) probably logging off DB Error: no such table', + 'logging/contribute/detail' => '(likely to be test related) probably logging off DB Error: no such table', + 'survey/detail' => '(likely to be test related) Undefined index: CiviCampaign civicrm CRM/Core/Component.php(196)', 'contribute/history' => 'Declaration of CRM_Report_Form_Contribute_History::buildRows() should be compatible with CRM_Report_Form::buildRows($sql, &$rows)', );