complete story 4.5 with qa tests and applied pagintation fix
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user