api_v3_MailingGroupTest - useTransaction()
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 23:05:38 +0000 (15:05 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 23:09:14 +0000 (15:09 -0800)
tests/phpunit/api/v3/MailingGroupTest.php

index 2faf700b6a72a7baaf110958580c1f5568c59a13..c5f1b39e175d0a81dee8cae4f8b2ed1005c65b03 100644 (file)
@@ -39,15 +39,12 @@ class api_v3_MailingGroupTest extends CiviUnitTestCase {
 
   function setUp() {
     parent::setUp();
+    $this->useTransaction(TRUE);
     $this->_apiversion = 3;
     $this->_groupID = $this->groupCreate();
     $this->_email = 'test@test.test';
   }
 
-  function tearDown() {
-    $this->groupDelete($this->_groupID);
-  }
-
   //---------- civicrm_mailing_event_subscribe methods ---------
 
   /**