From f803b8a35447c110c8a04fa07c25a6b1e94256d2 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 13:37:42 -0800 Subject: [PATCH] api_v3_ContributionSoftTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/ContributionSoftTest.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tests/phpunit/api/v3/ContributionSoftTest.php b/tests/phpunit/api/v3/ContributionSoftTest.php index e04ff2e9e5..987d3af112 100644 --- a/tests/phpunit/api/v3/ContributionSoftTest.php +++ b/tests/phpunit/api/v3/ContributionSoftTest.php @@ -52,6 +52,7 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase { function setUp() { parent::setUp(); + $this->useTransaction(TRUE); $this->_individualId = $this->individualCreate(); $this->_softIndividual1Id = $this->individualCreate(); @@ -83,22 +84,6 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase { ); } - function tearDown() { - $this->quickCleanup(array( - 'civicrm_contribution', - 'civicrm_event', - 'civicrm_contribution_page', - 'civicrm_participant', - 'civicrm_participant_payment', - 'civicrm_line_item', - 'civicrm_financial_trxn', - 'civicrm_financial_item', - 'civicrm_entity_financial_trxn', - 'civicrm_contact', - 'civicrm_contribution_soft' - )); - } - /** * Test get methods * @todo - this might be better broken down into more smaller tests -- 2.25.1