Skip to content

Commit 0361a67

Browse files
author
Dominic Tubach
committed
Make \CRM_Remoteevent_GetFormTest::testCancel() pass
1 parent 24ef2ed commit 0361a67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/phpunit/CRM/Remoteevent/GetFormTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testCreateAnonymous()
8181
/**
8282
* Test RemoteParticipant.get_form context=cancel API anonymously
8383
*/
84-
public function testCancel()
84+
public function testCancel(): void
8585
{
8686
// create an event
8787
$event = $this->createRemoteEvent([
@@ -95,7 +95,8 @@ public function testCancel()
9595

9696
// check cancellation with default profile
9797
$fields = $this->traitCallAPISuccess('RemoteParticipant', 'get_form', [
98-
'context' => 'cancel',
98+
'context' => 'cancel',
99+
'remote_contact_id' => $this->getRemoteContactKey($contact['id']),
99100
'event_id' => $event['id'],
100101
])['values'];
101102
$this->assertGetFormStandardFields($fields, true);

0 commit comments

Comments
 (0)