Fix up on invalid test data
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 19 Jun 2021 00:24:27 +0000 (12:24 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 19 Jun 2021 00:27:05 +0000 (12:27 +1200)
tests/phpunit/CRM/Event/Form/ParticipantTest.php

index d25f82e1af361c0c3ec6f33016318dbc7dcbb476..bac093c80804d3853e2ade94fd7a2a8cf95715f2 100644 (file)
@@ -526,9 +526,10 @@ class CRM_Event_Form_ParticipantTest extends CiviUnitTestCase {
       'register_date' => date('Ymd'),
       'status_id' => 1,
       'role_id' => 1,
+      $this->getPriceFieldKey() => $this->getPriceFieldValueID(),
+      'priceSetId' => $this->getPriceSetID(),
       'event_id' => $this->getEventID(),
       'record_contribution' => TRUE,
-      'amount' => 100,
       'amount_level' => 'blah',
       'financial_type_id' => 1,
     ]);