From 51a11406786035b47f68cf8589fe966a3871874b Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 13:28:44 -0800 Subject: [PATCH] api_v3_DashboardTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/DashboardTest.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/tests/phpunit/api/v3/DashboardTest.php b/tests/phpunit/api/v3/DashboardTest.php index 245de3b46a..3e031d96fd 100644 --- a/tests/phpunit/api/v3/DashboardTest.php +++ b/tests/phpunit/api/v3/DashboardTest.php @@ -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() { -- 2.25.1