summaryrefslogtreecommitdiff
path: root/tests/integration/ApiTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/ApiTest.php')
-rw-r--r--tests/integration/ApiTest.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/integration/ApiTest.php b/tests/integration/ApiTest.php
index 5cf364217..c7fe534fe 100644
--- a/tests/integration/ApiTest.php
+++ b/tests/integration/ApiTest.php
@@ -1,19 +1,13 @@
<?php
+use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase;
-/** @group integration */
+#[Group('integration')]
final class ApiTest extends TestCase {
private string $api_url = "";
private string $app_url = "";
private string $sid = "";
- function __construct() {
- $this->api_url = getenv('API_URL');
- $this->app_url = getenv('APP_URL');
-
- parent::__construct();
- }
-
/** @param array<mixed> $payload
* @return array<mixed>
*/
@@ -44,6 +38,8 @@ final class ApiTest extends TestCase {
}
public function setUp(): void {
+ $this->api_url = getenv('API_URL');
+ $this->app_url = getenv('APP_URL');
$this->test_login();
}