Skip to content

Commit 2885afe

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent eb2659c commit 2885afe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Browser/Auth/PasswordResetTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use App\Models\User;
44
use Illuminate\Auth\Notifications\ResetPassword;
55
use Illuminate\Support\Facades\Notification;
6+
use Illuminate\Support\Facades\Password;
67

78
use function Pest\Laravel\post;
89

@@ -34,7 +35,7 @@
3435

3536
Notification::fake();
3637

37-
post(route('password.email'), ['email' => $user->email]);
38+
Password::sendResetLink($user->email);
3839

3940
Notification::assertSentTo($user, ResetPassword::class, function ($notification) {
4041
visit(route('password.reset', $notification->token))

0 commit comments

Comments
 (0)