From: eileenmcnaughton Date: Wed, 8 Jul 2015 09:14:07 +0000 (+0000) Subject: API payment_token test re-order setup to allow rollback to work X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3265e6ae52ef791d1c6ea64da9d1c9435b8aaecf;p=civicrm-core.git API payment_token test re-order setup to allow rollback to work --- 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() {