Skip to content

Commit ee01743

Browse files
committed
wip
1 parent 17c7a0c commit ee01743

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

bootstrap/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
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) {

tests/Feature/Auth/EmailVerificationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
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
});

tests/Feature/DashboardTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
use App\Models\User;
44

55
test('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

109
test('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
});

tests/Feature/Settings/ProfileUpdateTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@
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

0 commit comments

Comments
 (0)