From: eileen Date: Thu, 21 Nov 2019 08:58:50 +0000 (+1300) Subject: [Test] Remove hard coded it reference X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9d0b81fc77a9a436751fd32b2f1ffc6bdaacf6e8;p=civicrm-core.git [Test] Remove hard coded it reference Honestly - why isn't this failing already? We only need the contributionID so this works --- diff --git a/tests/phpunit/CRM/Core/BAO/FinancialTrxnTest.php b/tests/phpunit/CRM/Core/BAO/FinancialTrxnTest.php index 6b92c15781..ba546e234f 100644 --- a/tests/phpunit/CRM/Core/BAO/FinancialTrxnTest.php +++ b/tests/phpunit/CRM/Core/BAO/FinancialTrxnTest.php @@ -237,7 +237,7 @@ class CRM_Core_BAO_FinancialTrxnTest extends CiviUnitTestCase { 'fee_amount' => 0.00, 'net_amount' => 300.00, ]; - $contribution = $this->callAPISuccess('Contribution', 'create', $params)['values'][7]; + $contribution = $this->callAPISuccess('Contribution', 'create', $params); //make a payment one cent short $params = [ 'contribution_id' => $contribution['id'],