From 3265e6ae52ef791d1c6ea64da9d1c9435b8aaecf Mon Sep 17 00:00:00 2001 From: eileenmcnaughton Date: Wed, 8 Jul 2015 09:14:07 +0000 Subject: [PATCH] API payment_token test re-order setup to allow rollback to work --- tests/phpunit/api/v3/PaymentTokenTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/api/v3/PaymentTokenTest.php b/tests/phpunit/api/v3/PaymentTokenTest.php index 1714900ff2..9947f282b0 100644 --- a/tests/phpunit/api/v3/PaymentTokenTest.php +++ b/tests/phpunit/api/v3/PaymentTokenTest.php @@ -40,6 +40,8 @@ class api_v3_PaymentTokenTest extends CiviUnitTestCase { public function setUp() { $this->_apiversion = 3; + $this->useTransaction(TRUE); + parent::setUp(); $contactID = $this->individualCreate(); $paymentProcessor = $this->processorCreate(); $this->params = array( @@ -48,8 +50,6 @@ class api_v3_PaymentTokenTest extends CiviUnitTestCase { 'created_id' => $contactID, 'payment_processor_id' => $paymentProcessor->id, ); - parent::setUp(); - $this->useTransaction(TRUE); } public function testCreatePaymentToken() { -- 2.25.1