From: Mathieu Lutfy Date: Wed, 29 Mar 2017 19:50:54 +0000 (-0400) Subject: CRM-20336: Failed contributions should be set as failed, not left as pending (fix... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5e67c92d91cf2f41de89ad12f1c84e5c5d2ba6b3;p=civicrm-core.git CRM-20336: Failed contributions should be set as failed, not left as pending (fix the test). --- diff --git a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php index 895ff20e8f..66ad977196 100644 --- a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php @@ -231,7 +231,7 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase { $this->callAPISuccessGetCount('Contribution', array( 'contact_id' => $this->_individualId, - 'contribution_status_id' => $error ? 'Pending' : 'Completed', + 'contribution_status_id' => $error ? 'Failed' : 'Completed', 'payment_instrument_id' => $this->callAPISuccessGetValue('PaymentProcessor', array( 'return' => 'payment_instrument_id', 'id' => $paymentProcessorID,