Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make \CRM_Remoteevent_GetFormTest::testCancel() pass #97

Open
wants to merge 1 commit into
base: run-tests-in-github-action
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/phpunit/CRM/Remoteevent/GetFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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);
Expand Down
Loading