over naar uuids, policies, predefined mutations aan kunnen passen
This commit is contained in:
@@ -19,7 +19,7 @@ test('only owners can invite other users to a dynamic', function () {
|
||||
|
||||
// 1. Participant tries to send an invite (forbidden)
|
||||
$response = $this->actingAs($participant)
|
||||
->post(route('dynamics.invitations.store', $dynamic), [
|
||||
->post(route('dynamics.invitations.store', $dynamic->uuid), [
|
||||
'email' => 'invitee@example.com',
|
||||
'role' => 'participant',
|
||||
]);
|
||||
@@ -29,7 +29,7 @@ test('only owners can invite other users to a dynamic', function () {
|
||||
|
||||
// 2. Owner sends a valid invite (allowed)
|
||||
$response = $this->actingAs($owner)
|
||||
->post(route('dynamics.invitations.store', $dynamic), [
|
||||
->post(route('dynamics.invitations.store', $dynamic->uuid), [
|
||||
'email' => 'invitee@example.com',
|
||||
'role' => 'participant',
|
||||
]);
|
||||
@@ -83,7 +83,7 @@ test('only the user with the specified email address can accept the link', funct
|
||||
|
||||
// 3. Intended user accepts the signed invitation link (success)
|
||||
$response = $this->actingAs($invitee)->get($signedUrl);
|
||||
$response->assertRedirect(route('dynamics.show', $dynamic));
|
||||
$response->assertRedirect(route('dynamics.show', $dynamic->uuid));
|
||||
|
||||
// Verify invitee is joined as a participant with the specified role
|
||||
$isJoined = $dynamic->participants()
|
||||
|
||||
Reference in New Issue
Block a user