From 09a27a8ca4047f4c9a4b7081ca892610c17e5b4c Mon Sep 17 00:00:00 2001 From: Aselsan Date: Thu, 18 Jul 2024 08:32:09 +0700 Subject: [PATCH] update test --- tests/Authentication/MagicLinkTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Authentication/MagicLinkTest.php b/tests/Authentication/MagicLinkTest.php index f8426604a..db9fefaae 100644 --- a/tests/Authentication/MagicLinkTest.php +++ b/tests/Authentication/MagicLinkTest.php @@ -65,12 +65,13 @@ public function testMagicLinkSubmitNoEmail(): void public function testMagicLinkSubmitBadEmail(): void { + $email = 'foo@example.com'; $result = $this->post(route_to('magic-link'), [ - 'email' => 'foo@example.com', + '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