test(auth): expect invitation link to use auth.link route
This commit is contained in:
parent
4f509c02be
commit
45d9426690
1 changed files with 2 additions and 1 deletions
|
|
@ -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 () {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue