From 45d9426690957ff8da2f65cb4f3b0ec5d1bc4dea Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Mon, 15 Jun 2026 11:55:03 +0200 Subject: [PATCH] test(auth): expect invitation link to use auth.link route --- tests/Feature/TeamInvitationPrivilegeEscalationTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Feature/TeamInvitationPrivilegeEscalationTest.php b/tests/Feature/TeamInvitationPrivilegeEscalationTest.php index af8a57cdd..06013935f 100644 --- a/tests/Feature/TeamInvitationPrivilegeEscalationTest.php +++ b/tests/Feature/TeamInvitationPrivilegeEscalationTest.php @@ -202,7 +202,8 @@ $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 () {