diff --git a/tests/phpunit/CRM/Remoteevent/GetFormTest.php b/tests/phpunit/CRM/Remoteevent/GetFormTest.php index d932868..df81113 100644 --- a/tests/phpunit/CRM/Remoteevent/GetFormTest.php +++ b/tests/phpunit/CRM/Remoteevent/GetFormTest.php @@ -81,7 +81,7 @@ public function testCreateAnonymous() /** * Test RemoteParticipant.get_form context=cancel API anonymously */ - public function testCancel() + public function testCancel(): void { // create an event $event = $this->createRemoteEvent([ @@ -95,7 +95,8 @@ public function testCancel() // check cancellation with default profile $fields = $this->traitCallAPISuccess('RemoteParticipant', 'get_form', [ - 'context' => 'cancel', + 'context' => 'cancel', + 'remote_contact_id' => $this->getRemoteContactKey($contact['id']), 'event_id' => $event['id'], ])['values']; $this->assertGetFormStandardFields($fields, true);