From 5e67c92d91cf2f41de89ad12f1c84e5c5d2ba6b3 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Wed, 29 Mar 2017 15:50:54 -0400 Subject: [PATCH] CRM-20336: Failed contributions should be set as failed, not left as pending (fix the test). --- tests/phpunit/CRM/Contribute/Form/ContributionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.25.1