From bba868debaeb32671a6d9994a27dd7929d161485 Mon Sep 17 00:00:00 2001 From: Kovah Date: Thu, 24 Oct 2024 22:11:42 +0200 Subject: [PATCH] Correct rate limit configuration test --- tests/Controller/API/GeneralApiTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Controller/API/GeneralApiTest.php b/tests/Controller/API/GeneralApiTest.php index a2e634ac..542e456e 100644 --- a/tests/Controller/API/GeneralApiTest.php +++ b/tests/Controller/API/GeneralApiTest.php @@ -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