From: Eileen McNaughton Date: Fri, 18 Jun 2021 21:00:33 +0000 (+1200) Subject: Further fix for double lines X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4f180a93cdc291a1d9dde976648a44039f6d77ba;p=civicrm-core.git Further fix for double lines --- diff --git a/tests/phpunit/CRMTraits/Financial/OrderTrait.php b/tests/phpunit/CRMTraits/Financial/OrderTrait.php index ae0eff8c78..f3c61ac053 100644 --- a/tests/phpunit/CRMTraits/Financial/OrderTrait.php +++ b/tests/phpunit/CRMTraits/Financial/OrderTrait.php @@ -218,7 +218,7 @@ trait CRMTraits_Financial_OrderTrait { */ protected function createEventOrder($orderParams = []) { $this->ids['Contribution'][0] = $this->callAPISuccess('Order', 'create', array_merge($this->getParticipantOrderParams(), $orderParams))['id']; - $this->ids['Participant'][0] = $this->callAPISuccessGetValue('ParticipantPayment', ['return' => 'participant_id', 'contribution_id' => $this->ids['Contribution'][0]]); + $this->ids['Participant'][0] = $this->callAPISuccessGetValue('ParticipantPayment', ['options' => ['limit' => 1], 'return' => 'participant_id', 'contribution_id' => $this->ids['Contribution'][0]]); } /**