From 924cd81a35b3f167701a6cf66cea7d0c69d940d9 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 12:41:28 -0800 Subject: [PATCH] api_v3_ParticipantPaymentTest - Change quickCleanup() to useTransaction() --- .../phpunit/api/v3/ParticipantPaymentTest.php | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/tests/phpunit/api/v3/ParticipantPaymentTest.php b/tests/phpunit/api/v3/ParticipantPaymentTest.php index ae1324efec..c67234a378 100644 --- a/tests/phpunit/api/v3/ParticipantPaymentTest.php +++ b/tests/phpunit/api/v3/ParticipantPaymentTest.php @@ -59,11 +59,7 @@ class api_v3_ParticipantPaymentTest extends CiviUnitTestCase { function setUp() { parent::setUp(); - $tablesToTruncate = array( - 'civicrm_contribution', - 'civicrm_contact', - ); - $this->quickCleanup($tablesToTruncate); + $this->useTransaction(TRUE); $event = $this->eventCreate(NULL); $this->_eventID = $event['id']; $this->_contactID = $this->individualCreate(); @@ -79,23 +75,6 @@ class api_v3_ParticipantPaymentTest extends CiviUnitTestCase { $this->_participantID4 = $this->participantCreate(array('contactID' => $this->_contactID3, 'eventID' => $this->_eventID)); } - function tearDown() { - $this->eventDelete($this->_eventID); - $this->quickCleanup( - array( - 'civicrm_contact', - 'civicrm_contribution', - 'civicrm_participant', - 'civicrm_participant_payment', - 'civicrm_line_item', - 'civicrm_financial_item', - 'civicrm_financial_trxn', - 'civicrm_entity_financial_trxn', - ), - TRUE - ); - } - ///////////////// civicrm_participant_payment_create methods /** -- 2.25.1