From: Eileen McNaughton Date: Tue, 15 Jul 2014 22:40:22 +0000 (+1200) Subject: update completetransaction test to reflect the update to make it only complete incomp... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c66842140e1fd52cf03300debaca5041a1a92168;p=civicrm-core.git update completetransaction test to reflect the update to make it only complete incomplete transactions --- diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 8da1b5082d..73fce6b58f 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -1212,7 +1212,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { function testCompleteTransaction() { $mut = new CiviMailUtils( $this, true ); $this->createLoggedInUser(); - $params = array_merge($this->_params, array('contribution_status_id' => 1,)); + $params = array_merge($this->_params, array('contribution_status_id' => 2,)); $contribution = $this->callAPISuccess('contribution','create', $params); $this->callAPISuccess('contribution', 'completetransaction', array( 'id' => $contribution['id'], @@ -1230,13 +1230,12 @@ class api_v3_ContributionTest extends CiviUnitTestCase { * CRM-14151 * Test completing a transaction via the API * - * For wierd caching-y reasons this test performs differently in isolation than with other * tests. */ function testCompleteTransactionWithReceiptDateSet() { $mut = new CiviMailUtils( $this, true ); $this->createLoggedInUser(); - $params = array_merge($this->_params, array('contribution_status_id' => 1,'receipt_date' => 'now')); + $params = array_merge($this->_params, array('contribution_status_id' => 2,'receipt_date' => 'now')); $contribution = $this->callAPISuccess('contribution','create', $params); $apiResult = $this->callAPISuccess('contribution', 'completetransaction', array( 'id' => $contribution['id'],