feat: limit
This commit is contained in:
@@ -48,9 +48,6 @@ it('protects the horizon dashboard outside local environments', function (): voi
|
||||
});
|
||||
|
||||
it('protects the scramble documentation outside local environments', function (): void {
|
||||
$admin = User::factory()->create([
|
||||
'role' => UserRole::ADMIN,
|
||||
]);
|
||||
$user = User::factory()->create([
|
||||
'role' => UserRole::USER,
|
||||
]);
|
||||
@@ -60,8 +57,4 @@ it('protects the scramble documentation outside local environments', function ()
|
||||
$this->actingAs($user)
|
||||
->get('/docs/api')
|
||||
->assertForbidden();
|
||||
|
||||
$this->actingAs($admin)
|
||||
->get('/docs/api')
|
||||
->assertSuccessful();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user