api_v3_MembershipTypeTest - Change quickCleanup() to useTransaction()
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 20:51:56 +0000 (12:51 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:07:02 +0000 (14:07 -0800)
tests/phpunit/api/v3/MembershipTypeTest.php

index 1ccf3be47f4a45151d23f767946f664107e07b25..c679f7a89264720a23935fd69eef92e0c776a200 100644 (file)
@@ -51,15 +51,11 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
 
   function setUp() {
     parent::setUp();
+    $this->useTransaction(TRUE);
     $this->_apiversion = 3;
     $this->_contactID = $this->organizationCreate(NULL);
   }
 
-  function tearDown() {
-    $tablesToTruncate = array('civicrm_contact');
-    $this->quickCleanup($tablesToTruncate);
-  }
-
   function testGetWithoutId() {
     $params = array(
       'name' => '60+ Membership',