From 371ced56fcae007f9dc0bb34d6b56c66531d328c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 1 Aug 2022 05:59:13 +1000 Subject: [PATCH] Fix test passing array instead of id --- tests/phpunit/api/v3/ContributionTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 6c45fb1a70..3b9c25d7f4 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -3282,7 +3282,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { * * @throws \Exception */ - public function testCompleteTransactionSetStatusToInProgress($dataSet) { + public function testCompleteTransactionSetStatusToInProgress(array $dataSet): void { $paymentProcessorID = $this->paymentProcessorCreate(); $contributionRecur = $this->callAPISuccess('contribution_recur', 'create', array_merge([ 'contact_id' => $this->_individualId, @@ -3304,7 +3304,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { ]) ); $this->callAPISuccess('Contribution', 'completetransaction', [ - 'id' => $contribution, + 'id' => $contribution['id'], 'receive_date' => $dataSet['receive_date'], ]); $contributionRecur = $this->callAPISuccessGetSingle('ContributionRecur', [ -- 2.25.1