api_v3_DashboardTest - 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:39 +0000 (14:07 -0800)
tests/phpunit/api/v3/DashboardTest.php

index 245de3b46aa4fe967b372c7746985ed2de4348a4..3e031d96fdf58acc6552af29145f2d85d76943b8 100644 (file)
@@ -46,19 +46,7 @@ class api_v3_DashboardTest 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',
-    );
-    $this->quickCleanup($tablesToTruncate, TRUE);
+    $this->useTransaction(TRUE);
   }
 
   function testDashboardCreate() {