We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2659c commit 2885afeCopy full SHA for 2885afe
tests/Browser/Auth/PasswordResetTest.php
@@ -3,6 +3,7 @@
3
use App\Models\User;
4
use Illuminate\Auth\Notifications\ResetPassword;
5
use Illuminate\Support\Facades\Notification;
6
+use Illuminate\Support\Facades\Password;
7
8
use function Pest\Laravel\post;
9
@@ -34,7 +35,7 @@
34
35
36
Notification::fake();
37
- post(route('password.email'), ['email' => $user->email]);
38
+ Password::sendResetLink($user->email);
39
40
Notification::assertSentTo($user, ResetPassword::class, function ($notification) {
41
visit(route('password.reset', $notification->token))
0 commit comments