From a12797ee690e30635a74958e5a13be9651f70244 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 13:51:41 -0800 Subject: [PATCH] api_v3_ActionScheduleTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/ActionScheduleTest.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tests/phpunit/api/v3/ActionScheduleTest.php b/tests/phpunit/api/v3/ActionScheduleTest.php index b3dc5e2e47..1fb09f188a 100644 --- a/tests/phpunit/api/v3/ActionScheduleTest.php +++ b/tests/phpunit/api/v3/ActionScheduleTest.php @@ -49,23 +49,9 @@ class api_v3_ActionScheduleTest extends CiviUnitTestCase { public function setUp() { // Connect to the database parent::setUp(); - - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - * - * @access protected - */ - function tearDown() { - $tablesToTruncate = array( - 'civicrm_action_schedule', - ); - $this->quickCleanup($tablesToTruncate, TRUE); + $this->useTransaction(TRUE); } - function testSimpleActionScheduleCreate() { $oldCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_action_schedule'); $activityContacts = CRM_Core_OptionGroup::values('activity_contacts', FALSE, FALSE, FALSE, NULL, 'name'); -- 2.25.1