File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 5353 post (route ('password.email ' ), ['email ' => $ user ->email ]);
5454
5555 Notification::assertSentTo ($ user , ResetPassword::class, function ($ notification ) use ($ user ) {
56- visit (route ('password.reset ' , $ notification ->token ))
56+ visit (route ('password.reset ' , [ ' token ' => $ notification ->token , ' email ' => $ user -> email ] ))
5757 ->fill ('password ' , 'password ' )
5858 ->fill ('password_confirmation ' , 'password ' )
59- ->assertNoConsoleLogs ()
60- ->assertNoJavaScriptErrors ()
59+ ->assertValue ('email ' , $ user ->email )
6160 ->press ('@reset-password-button ' )
62- ->assertUrlIs (route ('home ' ))
63- ->assertNoConsoleLogs ()
64- ->assertNoJavaScriptErrors ();
61+ ->assertUrlIs (route ('login ' ))
62+ ->assertSee ('Your password has been reset. ' );
6563
6664 return true ;
6765 });
You can’t perform that action at this time.
0 commit comments