From fb0190bbd2e31b4f2be6a8b03209d878078131d3 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 12:52:04 -0800 Subject: [PATCH] api_v3_MembershipPaymentTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/MembershipPaymentTest.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/tests/phpunit/api/v3/MembershipPaymentTest.php b/tests/phpunit/api/v3/MembershipPaymentTest.php index 2a775d65ed..08661fd489 100644 --- a/tests/phpunit/api/v3/MembershipPaymentTest.php +++ b/tests/phpunit/api/v3/MembershipPaymentTest.php @@ -44,6 +44,7 @@ class api_v3_MembershipPaymentTest extends CiviUnitTestCase { protected $_contribution = array(); function setUp() { parent::setUp(); + $this->useTransaction(TRUE); $this->_contactID = $this->organizationCreate(NULL); $this->_membershipTypeID = $this->membershipTypeCreate(array('member_of_contact_id' => $this->_contactID)); @@ -68,20 +69,6 @@ class api_v3_MembershipPaymentTest extends CiviUnitTestCase { $this->_contribution = $this->callAPISuccess('contribution','create', $params); } - function tearDown() { - $this->quickCleanup( - array( - 'civicrm_contact', - 'civicrm_contribution', - 'civicrm_membership', - 'civicrm_membership_payment', - 'civicrm_membership_status', - 'civicrm_membership_type', - 'civicrm_line_item', - ) - ); - } - ///////////////// civicrm_membership_payment_create methods /** -- 2.25.1