test fix to compensate for not truncating status anymore
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 15 Jul 2014 08:42:30 +0000 (20:42 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 15 Jul 2014 08:42:30 +0000 (20:42 +1200)
tests/phpunit/CiviTest/CiviUnitTestCase.php

index 37c6b9cbe645c6f1570315f8fefdec0955f07afa..8c54795b20d57c754d535290f791b948bffd254f 100644 (file)
@@ -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