complete story 4.5 with qa tests and applied pagintation fix

This commit is contained in:
Naser Mansour
2025-12-27 01:09:03 +02:00
parent fa9d05de10
commit 68a5551006
11 changed files with 629 additions and 5 deletions
+2 -2
View File
@@ -46,12 +46,12 @@ test('client can access client routes', function () {
$response->assertStatus(200);
});
test('admin can access client routes', function () {
test('admin cannot access client routes', function () {
$admin = User::factory()->admin()->create();
$response = $this->actingAs($admin)->get('/client/dashboard');
$response->assertStatus(200);
$response->assertForbidden();
});
test('deactivated user logged out on request', function () {