Further fix for double lines
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 18 Jun 2021 21:00:33 +0000 (09:00 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 18 Jun 2021 23:46:40 +0000 (11:46 +1200)
tests/phpunit/CRMTraits/Financial/OrderTrait.php

index ae0eff8c78f2cfa7f1837cc64c0c9111c26ff865..f3c61ac05311f3f4f18cefd9d9cc899181118b71 100644 (file)
@@ -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]]);
   }
 
   /**