api_v3_GroupOrganizationTest - Change quickCleanup() to useTransaction()
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 21:25:01 +0000 (13:25 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:07:31 +0000 (14:07 -0800)
tests/phpunit/api/v3/GroupOrganizationTest.php

index 349ddd86d02a5d6094b66d56ee54382a7b8d56f4..c08fdb54108129144ea240277b5c10a5e54ec828 100644 (file)
@@ -56,31 +56,12 @@ class api_v3_GroupOrganizationTest extends CiviUnitTestCase {
   protected function setUp() {
     $this->_apiversion = 3;
     parent::setUp();
+    $this->useTransaction(TRUE);
     $this->_groupID = $this->groupCreate();
 
     $this->_orgID = $this->organizationCreate(NULL);
   }
 
-  /**
-   * Tears down the fixture, for example, closes a network connection.
-   * This method is called after a test is executed.
-   *
-   * @access protected
-   */
-  protected function tearDown() {
-    //  Truncate the tables
-    $this->quickCleanup(
-      array(
-        'civicrm_group',
-        'civicrm_group_organization',
-        'civicrm_contact',
-        'civicrm_uf_group',
-        'civicrm_uf_join',
-        'civicrm_uf_match',
-      )
-    );
-  }
-
   ///////////////// civicrm_group_organization_get methods
 
   /**