From ea1cc7136f391fc954118aaf70e26f413902f19a Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 12:14:58 -0800 Subject: [PATCH] api_v3_PhoneTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/PhoneTest.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/phpunit/api/v3/PhoneTest.php b/tests/phpunit/api/v3/PhoneTest.php index fa76667b00..f343f26bd8 100644 --- a/tests/phpunit/api/v3/PhoneTest.php +++ b/tests/phpunit/api/v3/PhoneTest.php @@ -45,12 +45,12 @@ class api_v3_PhoneTest extends CiviUnitTestCase { function setUp() { $this->_apiversion = 3; parent::setUp(); + $this->useTransaction(); $this->_contactID = $this->organizationCreate(); $loc = $this->locationTypeCreate(); $this->_locationType = $loc->id; CRM_Core_PseudoConstant::flush(); - $this->quickCleanup(array('civicrm_phone')); $this->_params = array( 'contact_id' => $this->_contactID, 'location_type_id' => $this->_locationType, @@ -60,11 +60,6 @@ class api_v3_PhoneTest extends CiviUnitTestCase { ); } - function tearDown() { - $this->locationTypeDelete($this->_locationType); - $this->contactDelete($this->_contactID); - } - public function testCreatePhone() { $result = $this->callAPIAndDocument('phone', 'create', $this->_params, __FUNCTION__, __FILE__); -- 2.25.1