api_v3_ActionScheduleTest - Change quickCleanup() to useTransaction()
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 21:51:41 +0000 (13:51 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:08:04 +0000 (14:08 -0800)
tests/phpunit/api/v3/ActionScheduleTest.php

index b3dc5e2e47d604643015a25c81aa7e89cf59277a..1fb09f188a3c5812c3179214b673ad153738c3d4 100644 (file)
@@ -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');