api_v3_DashboardContactTest - Change quickCleanup() to useTransaction()
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 21:28:44 +0000 (13:28 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:07:42 +0000 (14:07 -0800)
tests/phpunit/api/v3/DashboardContactTest.php

index 258515909395da05f23eed546452b34474000637..cd0cf0367203d649b7d6a3f876a58c5542181dc4 100644 (file)
@@ -46,20 +46,7 @@ class api_v3_DashboardContactTest 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_dashboard',
-      'civicrm_dashboard_contact',
-    );
-    $this->quickCleanup($tablesToTruncate, TRUE);
+    $this->useTransaction(TRUE);
   }
 
   function testDashboardContactCreate() {