From 4f0fadfac616a725ad88572bdfcc2567da37bf29 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 12 Feb 2017 20:23:16 +1100 Subject: [PATCH] Set original contribution to be paid by Debit Card as well to prove that its using default payment instrument --- tests/phpunit/api/v3/ContributionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index c3dc905a95..64e3ac18ce 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -3340,7 +3340,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { )); $contribution1 = $this->callAPISuccess('contribution', 'create', array_merge( $this->_params, - array('contribution_recur_id' => $contributionRecur['id'])) + array('contribution_recur_id' => $contributionRecur['id'], 'payment_instrument_id' => 2)) ); $paymentInstruments = CRM_Contribute_PseudoConstant::paymentInstrument('name'); $contribution2 = $this->callAPISuccess('contribution', 'repeattransaction', array( -- 2.25.1