From: Eileen McNaughton Date: Tue, 15 Jul 2014 08:42:30 +0000 (+1200) Subject: test fix to compensate for not truncating status anymore X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4278b952d40683324613b2b09a6036a56d9d5017;p=civicrm-core.git test fix to compensate for not truncating status anymore --- diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 37c6b9cbe6..8c54795b20 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -2379,6 +2379,7 @@ AND ( TABLE_NAME LIKE 'civicrm_value_%' ) 'civicrm_pledge', ); $this->quickCleanup($tablesToTruncate); + CRM_Core_DAO::executeQuery("DELETE FROM civicrm_membership_status WHERE name NOT IN('New', 'Current', 'Grace', 'Expired', 'Pending', 'Cancelled', 'Deceased')"); } /* * Function does a 'Get' on the entity & compares the fields in the Params with those returned