CRM-20336: Failed contributions should be set as failed, not left as pending (fix...
authorMathieu Lutfy <mathieu@bidon.ca>
Wed, 29 Mar 2017 19:50:54 +0000 (15:50 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Wed, 29 Mar 2017 19:50:54 +0000 (15:50 -0400)
tests/phpunit/CRM/Contribute/Form/ContributionTest.php

index 895ff20e8fb9008fb3fffab0d57bc13b396b814c..66ad97719666ad6bfe7822d4a7c5e25ad3998c3a 100644 (file)
@@ -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,