refactor: update feature and unit test suites to improve test coverage and reliability
This commit is contained in:
parent
4b833c81c6
commit
05c7b8da04
@ -79,4 +79,4 @@
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$response->assertTooManyRequests();
|
$response->assertTooManyRequests();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -97,4 +97,4 @@
|
|||||||
|
|
||||||
Event::assertNotDispatched(Verified::class);
|
Event::assertNotDispatched(Verified::class);
|
||||||
expect($user->fresh()->hasVerifiedEmail())->toBeTrue();
|
expect($user->fresh()->hasVerifiedEmail())->toBeTrue();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -19,4 +19,4 @@
|
|||||||
$response = $this->get(route('password.confirm'));
|
$response = $this->get(route('password.confirm'));
|
||||||
|
|
||||||
$response->assertRedirect(route('login'));
|
$response->assertRedirect(route('login'));
|
||||||
});
|
});
|
||||||
|
|||||||
@ -75,4 +75,4 @@
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$response->assertSessionHasErrors('email');
|
$response->assertSessionHasErrors('email');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -22,4 +22,4 @@
|
|||||||
|
|
||||||
$this->assertAuthenticated();
|
$this->assertAuthenticated();
|
||||||
$response->assertRedirect(route('dashboard', absolute: false));
|
$response->assertRedirect(route('dashboard', absolute: false));
|
||||||
});
|
});
|
||||||
|
|||||||
@ -38,4 +38,4 @@
|
|||||||
->assertInertia(fn (Assert $page) => $page
|
->assertInertia(fn (Assert $page) => $page
|
||||||
->component('auth/two-factor-challenge'),
|
->component('auth/two-factor-challenge'),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -31,4 +31,4 @@
|
|||||||
->assertRedirect(route('dashboard', absolute: false));
|
->assertRedirect(route('dashboard', absolute: false));
|
||||||
|
|
||||||
Notification::assertNothingSent();
|
Notification::assertNothingSent();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -13,4 +13,4 @@
|
|||||||
|
|
||||||
$response = $this->get(route('dashboard'));
|
$response = $this->get(route('dashboard'));
|
||||||
$response->assertOk();
|
$response->assertOk();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,4 +4,4 @@
|
|||||||
$response = $this->get(route('home'));
|
$response = $this->get(route('home'));
|
||||||
|
|
||||||
$response->assertOk();
|
$response->assertOk();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -82,4 +82,4 @@
|
|||||||
->assertRedirect(route('profile.edit'));
|
->assertRedirect(route('profile.edit'));
|
||||||
|
|
||||||
expect($user->fresh())->not->toBeNull();
|
expect($user->fresh())->not->toBeNull();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -111,4 +111,4 @@
|
|||||||
$response
|
$response
|
||||||
->assertSessionHasErrors('current_password')
|
->assertSessionHasErrors('current_password')
|
||||||
->assertRedirect(route('security.edit'));
|
->assertRedirect(route('security.edit'));
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
test('that true is true', function () {
|
test('that true is true', function () {
|
||||||
expect(true)->toBeTrue();
|
expect(true)->toBeTrue();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user