From 6510b20ab93192f91e7765ee1f07ce00488004c6 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 13:10:43 -0800 Subject: [PATCH] api_v3_JobTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/JobTest.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/phpunit/api/v3/JobTest.php b/tests/phpunit/api/v3/JobTest.php index 1be311d739..c63b33b47c 100644 --- a/tests/phpunit/api/v3/JobTest.php +++ b/tests/phpunit/api/v3/JobTest.php @@ -49,6 +49,7 @@ class api_v3_JobTest extends CiviUnitTestCase { function setUp() { parent::setUp(); + $this->useTransaction(TRUE); $this->_params = array( 'sequential' => 1, 'name' => 'API_Test_Job', @@ -61,13 +62,6 @@ class api_v3_JobTest extends CiviUnitTestCase { ); } - function tearDown() { - $this->quickCleanup(array('civicrm_job', 'civicrm_action_log', 'civicrm_action_schedule')); - $this->quickCleanUpFinancialEntities(); - CRM_Utils_Hook::singleton()->reset(); - parent::tearDown(); - } - /** * Check with no name */ -- 2.25.1