forked from civicrm/civicrm-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRM-12622 - CiviUnitTestCase - Promote sethtmlGlobals
When defining multiple cases in CRM_Report_Form_Contribute_Detail, the second case fails due to an uninitialized (lost?) global. api_v3_UFFieldTest seems to have a work-around. ``` 1) CRM_Report_Form_Contribute_DetailTest::testReportOutput with data set #1 ('CRM_Report_Form_Contribute_Detail', array(array('first_name', 'email', 'total_amount'), array('gte', 50)), 'fixtures/dataset.sql', 'fixtures/report.csv') Undefined index: _HTML_QuickForm_registered_rules /Applications/MAMP/htdocs/sites/all/modules/civicrm/packages/HTML/QuickForm/RuleRegistry.php:122 /Applications/MAMP/htdocs/sites/all/modules/civicrm/packages/HTML/QuickForm/RuleRegistry.php:98 /Applications/MAMP/htdocs/sites/all/modules/civicrm/packages/HTML/QuickForm.php:389 /Applications/MAMP/htdocs/sites/all/modules/civicrm/CRM/Core/Form.php:187 /Applications/MAMP/htdocs/sites/all/modules/civicrm/CRM/Core/Form.php:156 /Applications/MAMP/htdocs/sites/all/modules/civicrm/CRM/Report/Form.php:256 /Applications/MAMP/htdocs/sites/all/modules/civicrm/CRM/Report/Form/Contribute/Detail.php:362 /Applications/MAMP/htdocs/sites/all/modules/civicrm/CRM/Core/Controller.php:426 /Applications/MAMP/htdocs/sites/all/modules/civicrm/CRM/Core/Controller/Simple.php:79 /Applications/MAMP/htdocs/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviReportTestCase.php:43 /Applications/MAMP/htdocs/sites/all/modules/civicrm/tests/phpunit/CRM/Report/Form/Contribute/DetailTest.php:105 /Applications/MAMP/htdocs/sites/all/modules/civicrm/tools/scripts/phpunit:75 ``` ---------------------------------------- * CRM-12622: Create framework for example report data files http://issues.civicrm.org/jira/browse/CRM-12622
- Loading branch information
Showing
3 changed files
with
173 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters