api_v3_JobProcessMailingTest - Change quickCleanup() to useTransaction()
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 21:10:43 +0000 (13:10 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:07:17 +0000 (14:07 -0800)
tests/phpunit/api/v3/JobProcessMailingTest.php

index 1a2964d7e43efce24deaf6bc5cc25d308da672ca..834822be411ebd937f7395bd46552d29b303e1ce 100644 (file)
@@ -57,6 +57,7 @@ class api_v3_JobProcessMailingTest extends CiviUnitTestCase {
 
   function setUp() {
     parent::setUp();
+    $this->useTransaction();
     CRM_Mailing_BAO_MailingJob::$mailsProcessed = 0; // DGW
     $this->_groupID = $this->groupCreate();
     $this->_email = 'test@test.test';
@@ -76,7 +77,7 @@ class api_v3_JobProcessMailingTest extends CiviUnitTestCase {
    */
   function tearDown() {
     $this->_mut->stop();
-    $this->quickCleanup(array('civicrm_mailing', 'civicrm_mailing_job', 'civicrm_contact'));
+//    $this->quickCleanup(array('civicrm_mailing', 'civicrm_mailing_job', 'civicrm_contact'));
     CRM_Utils_Hook::singleton()->reset();
     CRM_Mailing_BAO_MailingJob::$mailsProcessed = 0; // DGW
     parent::tearDown();