feat: limit
This commit is contained in:
parent
95dc772873
commit
b069730652
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
&& docker-php-ext-install intl
|
&& docker-php-ext-install intl
|
||||||
&& php -m | grep -qi '^intl$'
|
&& php -m | grep -qi '^intl$'
|
||||||
&& composer install --no-interaction --prefer-dist
|
&& composer install --no-interaction --prefer-dist
|
||||||
&& php artisan test --compact"
|
&& php -d memory_limit=512M artisan test --compact"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy with Kamal
|
name: Deploy with Kamal
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,6 @@ it('protects the horizon dashboard outside local environments', function (): voi
|
||||||
});
|
});
|
||||||
|
|
||||||
it('protects the scramble documentation outside local environments', function (): void {
|
it('protects the scramble documentation outside local environments', function (): void {
|
||||||
$admin = User::factory()->create([
|
|
||||||
'role' => UserRole::ADMIN,
|
|
||||||
]);
|
|
||||||
$user = User::factory()->create([
|
$user = User::factory()->create([
|
||||||
'role' => UserRole::USER,
|
'role' => UserRole::USER,
|
||||||
]);
|
]);
|
||||||
|
|
@ -60,8 +57,4 @@ it('protects the scramble documentation outside local environments', function ()
|
||||||
$this->actingAs($user)
|
$this->actingAs($user)
|
||||||
->get('/docs/api')
|
->get('/docs/api')
|
||||||
->assertForbidden();
|
->assertForbidden();
|
||||||
|
|
||||||
$this->actingAs($admin)
|
|
||||||
->get('/docs/api')
|
|
||||||
->assertSuccessful();
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue