Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft authored Jul 18, 2024
1 parent 50591b5 commit 09a27a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Authentication/MagicLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ public function testMagicLinkSubmitNoEmail(): void

public function testMagicLinkSubmitBadEmail(): void
{
$email = '[email protected]';
$result = $this->post(route_to('magic-link'), [
'email' => '[email protected]',
'email' => $email
]);

$result->assertRedirectTo(route_to('magic-link'));
$result->assertSessionHas('error', lang('Auth.invalidEmail'));
$result->assertSessionHas('error', lang('Auth.invalidEmail', [$email]));
}

public function testMagicLinkSubmitSuccess(): void
Expand Down

0 comments on commit 09a27a8

Please sign in to comment.