File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1414 )
1515 ->withMiddleware (function (Middleware $ middleware ) {
1616 $ middleware ->web (append: [
17- AddLinkHeadersForPreloadedAssets::class,
1817 HandleInertiaRequests::class,
18+ AddLinkHeadersForPreloadedAssets::class,
1919 ]);
2020 })
2121 ->withExceptions (function (Exceptions $ exceptions ) {
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-
55- test ('user can delete their account ' , function () {
53+ test ('users can delete their account ' , function () {
5654 $ user = User::factory ()->create ();
5755
5856 $ response = $ this
You can’t perform that action at this time.
0 commit comments