From bd772bfebef697a10d8b46e40f6ff6f20a64d402 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 12:51:42 -0800 Subject: [PATCH] api_v3_NoteTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/NoteTest.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/phpunit/api/v3/NoteTest.php b/tests/phpunit/api/v3/NoteTest.php index fef78847bf..2d7f7e608f 100644 --- a/tests/phpunit/api/v3/NoteTest.php +++ b/tests/phpunit/api/v3/NoteTest.php @@ -63,6 +63,7 @@ class api_v3_NoteTest extends CiviUnitTestCase { $this->_apiversion = 3; // Connect to the database parent::setUp(); + $this->useTransaction(TRUE); $this->_contactID = $this->organizationCreate(NULL); @@ -77,13 +78,6 @@ class api_v3_NoteTest extends CiviUnitTestCase { $this->_noteID = $this->_note['id']; } - function tearDown() { - $tablesToTruncate = array( - 'civicrm_note', 'civicrm_contact', - ); - $this->quickCleanup($tablesToTruncate); - } - ///////////////// civicrm_note_get methods /** -- 2.25.1