over naar uuids, policies, predefined mutations aan kunnen passen
linter / quality (push) Failing after 1m5s
tests / ci (8.4) (push) Failing after 1m7s
tests / ci (8.5) (push) Failing after 1m5s
tests / ci (8.3) (push) Failing after 12m5s

This commit is contained in:
Daan Meijer
2026-06-21 23:09:38 +02:00
parent 06e5600447
commit 1e0782385b
46 changed files with 1287 additions and 160 deletions
+3 -3
View File
@@ -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()