api_v3_LocBlockTest - useTransaction()
[civicrm-core.git] / tests / phpunit / api / v3 / ReportTemplateTest.php
index 2178aa95d3fe19d1acf54896b04fac821ec86b76..2fb02526511f90d98866bdc720ef0df2373cff66 100644 (file)
@@ -40,11 +40,9 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase {
 
   function setUp() {
     parent::setUp();
 
   function setUp() {
     parent::setUp();
-    $this->_sethtmlGlobals();
+    $this->useTransaction(TRUE);
   }
 
   }
 
-  function tearDown() {}
-
   public function testReportTemplate() {
     $result = $this->callAPISuccess('ReportTemplate', 'create', array(
       'label' => 'Example Form',
   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',
                       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',
         '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):',
         '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)',
     );
 
         'contribute/history' => 'Declaration of CRM_Report_Form_Contribute_History::buildRows() should be compatible with CRM_Report_Form::buildRows($sql, &$rows)',
     );