Skip to content

Commit 165c3b1

Browse files
committed
formatting tests
1 parent 74b2235 commit 165c3b1

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

tests/Feature/Auth/AuthenticationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
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', [

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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
$this->assertNotNull($user->refresh()->email_verified_at);
5151
});
5252

53-
// Delete Profile Tests
54-
5553
test('user can delete their account', function () {
5654
$user = User::factory()->create();
5755

0 commit comments

Comments
 (0)