[Test] Remove hard coded it reference
authoreileen <emcnaughton@wikimedia.org>
Thu, 21 Nov 2019 08:58:50 +0000 (21:58 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 21 Nov 2019 08:58:50 +0000 (21:58 +1300)
Honestly - why isn't this failing already? We only need the contributionID so this works

tests/phpunit/CRM/Core/BAO/FinancialTrxnTest.php

index 6b92c15781150404eb305cb8d220139b867aca02..ba546e234f6ffe97c58b704d25734812a3ab7b74 100644 (file)
@@ -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'],