From 31c45547c3d84362318121cf4fe71e48fe7aa834 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 12:51:56 -0800 Subject: [PATCH] api_v3_MembershipTypeTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/MembershipTypeTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/phpunit/api/v3/MembershipTypeTest.php b/tests/phpunit/api/v3/MembershipTypeTest.php index 1ccf3be47f..c679f7a892 100644 --- a/tests/phpunit/api/v3/MembershipTypeTest.php +++ b/tests/phpunit/api/v3/MembershipTypeTest.php @@ -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', -- 2.25.1