From 905d864bd9150a01fe017eca90b01a555f5e1120 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 13:25:01 -0800 Subject: [PATCH] api_v3_GroupOrganizationTest - Change quickCleanup() to useTransaction() --- .../phpunit/api/v3/GroupOrganizationTest.php | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/tests/phpunit/api/v3/GroupOrganizationTest.php b/tests/phpunit/api/v3/GroupOrganizationTest.php index 349ddd86d0..c08fdb5410 100644 --- a/tests/phpunit/api/v3/GroupOrganizationTest.php +++ b/tests/phpunit/api/v3/GroupOrganizationTest.php @@ -56,31 +56,12 @@ class api_v3_GroupOrganizationTest extends CiviUnitTestCase { protected function setUp() { $this->_apiversion = 3; parent::setUp(); + $this->useTransaction(TRUE); $this->_groupID = $this->groupCreate(); $this->_orgID = $this->organizationCreate(NULL); } - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - * - * @access protected - */ - protected function tearDown() { - // Truncate the tables - $this->quickCleanup( - array( - 'civicrm_group', - 'civicrm_group_organization', - 'civicrm_contact', - 'civicrm_uf_group', - 'civicrm_uf_join', - 'civicrm_uf_match', - ) - ); - } - ///////////////// civicrm_group_organization_get methods /** -- 2.25.1