From c008f8928f1dacf902a5f6940e95852b02b92bd6 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 13:10:43 -0800 Subject: [PATCH] api_v3_ImTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/ImTest.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/phpunit/api/v3/ImTest.php b/tests/phpunit/api/v3/ImTest.php index efccb8c879..e79686f4da 100644 --- a/tests/phpunit/api/v3/ImTest.php +++ b/tests/phpunit/api/v3/ImTest.php @@ -45,6 +45,7 @@ class api_v3_ImTest extends CiviUnitTestCase { function setUp() { parent::setUp(); + $this->useTransaction(TRUE); $this->_entity = 'im'; $this->_contactID = $this->organizationCreate(); @@ -56,13 +57,6 @@ class api_v3_ImTest extends CiviUnitTestCase { ); } - function tearDown() { - $this->quickCleanup(array( - 'civicrm_im', - 'civicrm_contact' - )); - } - public function testCreateIm() { $result = $this->callAPIAndDocument($this->_entity, 'create', $this->params, __FUNCTION__, __FILE__); $this->assertEquals(1, $result['count'], 'In line ' . __LINE__); -- 2.25.1