File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 2020 $ response ->assertRedirect (route ('dashboard ' , absolute: false ));
2121});
2222
23- test ('users can not authenticate with invalid password ' , function () {
23+ test ('users can not authenticate with an invalid password ' , function () {
2424 $ user = User::factory ()->create ();
2525
2626 $ this ->post ('/login ' , [
Original file line number Diff line number Diff line change 2727 $ response = $ this ->actingAs ($ user )->get ($ verificationUrl );
2828
2929 Event::assertDispatched (Verified::class);
30+
3031 expect ($ user ->fresh ()->hasVerifiedEmail ())->toBeTrue ();
3132 $ response ->assertRedirect (route ('dashboard ' , absolute: false ).'?verified=1 ' );
3233});
Original file line number Diff line number Diff line change 33use App \Models \User ;
44
55test ('guests are redirected to the login page ' , function () {
6- $ response = $ this ->get ('/dashboard ' );
7- $ response ->assertRedirect ('/login ' );
6+ $ this ->get ('/dashboard ' )->assertRedirect ('/login ' );
87});
98
109test ('authenticated users can visit the dashboard ' , function () {
11- $ user = User::factory ()->create ();
12- $ this ->actingAs ($ user );
10+ $ this ->actingAs ($ user = User::factory ()->create ());
1311
14- $ response = $ this ->get ('/dashboard ' );
15- $ response ->assertStatus (200 );
12+ $ this ->get ('/dashboard ' )->assertStatus (200 );
1613});
Original file line number Diff line number Diff line change 5050 $ this ->assertNotNull ($ user ->refresh ()->email_verified_at );
5151});
5252
53- // Delete Profile Tests
54-
5553test ('user can delete their account ' , function () {
5654 $ user = User::factory ()->create ();
5755
You can’t perform that action at this time.
0 commit comments