From 7d27f8fec2549c114a5b4d72851620ac81c86f63 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 14:44:17 -0700 Subject: [PATCH] api_v3_BatchTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/BatchTest.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/phpunit/api/v3/BatchTest.php b/tests/phpunit/api/v3/BatchTest.php index 3b1c7a8a12..ccda7e4e59 100644 --- a/tests/phpunit/api/v3/BatchTest.php +++ b/tests/phpunit/api/v3/BatchTest.php @@ -54,17 +54,7 @@ class api_v3_BatchTest extends CiviUnitTestCase { */ protected function setUp() { parent::setUp(); - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - * - * @access protected - */ - protected function tearDown() { - $tablesToTruncate = array('civicrm_batch'); - $this->quickCleanup($tablesToTruncate); + $this->useTransaction(TRUE); } /** -- 2.25.1