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