test(auth): expect invitation link to use auth.link route

This commit is contained in:
Andras Bacsai 2026-06-15 11:55:03 +02:00
parent 4f509c02be
commit 45d9426690

View file

@ -202,7 +202,8 @@
$invitation = TeamInvitation::whereEmail('fallback-invitee@example.com')->firstOrFail(); $invitation = TeamInvitation::whereEmail('fallback-invitee@example.com')->firstOrFail();
expect($invitation->link)->toStartWith('http://localhost/auth/link?token='); $expectedPrefix = route('auth.link', ['token' => '']);
expect($invitation->link)->toStartWith($expectedPrefix);
}); });
test('member cannot bypass policy by calling viaEmail', function () { test('member cannot bypass policy by calling viaEmail', function () {