Merge pull request #4909 from pratikshad/broken-webtest
[civicrm-core.git] / tests / phpunit / api / v3 / MailingGroupTest.php
index aa503dbc92ae6d794df6e2bcdfda4cb220fe110d..79ad0e46ec2c1b0e4dcdd13ab55c75c984286781 100644 (file)
@@ -30,36 +30,21 @@ require_once 'CiviTest/CiviUnitTestCase.php';
 /**
  *  Test APIv3 civicrm_mailing_group_* functions
  *
- *  @package   CiviCRM
+ * @package   CiviCRM
  */
 class api_v3_MailingGroupTest extends CiviUnitTestCase {
   protected $_groupID;
   protected $_email;
   protected $_apiversion;
 
-
-  /**
-   * @return array
-   */
-  function get_info() {
-    return array(
-      'name' => 'Mailer Group',
-      'description' => 'Test all Mailer Group methods.',
-      'group' => 'CiviCRM API Tests',
-    );
-  }
-
-  function setUp() {
+  public 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 ---------
 
   /**
@@ -200,4 +185,3 @@ class api_v3_MailingGroupTest extends CiviUnitTestCase {
     $this->contactDelete($contactID);
   }
 }
-