Skip to content

Commit

Permalink
Correct rate limit configuration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Oct 24, 2024
1 parent 6b2c632 commit bba868d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Controller/API/GeneralApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\Controller\API\ApiTestCase;
use Tests\Controller\Traits\PreparesTestData;

class GeneralApiTest extends ApiTestCase
{
public static function setUpBeforeClass(): void
use RefreshDatabase;

protected function setUp(): void
{
parent::setUpBeforeClass();
$_ENV['API_RATE_LIMIT'] = '120,1';
parent::setUp();
}

public function testCustomRateLimit(): void
Expand Down

0 comments on commit bba868d

Please sign in to comment.