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 () {