fix: add missing Role import and convert @group to PHP 8 attributes

- Add missing `use Utopia\Database\Helpers\Role` import in ProjectsBase.php
  (fixes "Class Role not found" fatal error)
- Convert @group ciIgnore docblock annotations to #[Group('ciIgnore')]
  PHP 8 attributes (PHPUnit 12 no longer supports docblock annotations)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-02-20 03:26:15 +13:00
parent 2a535a2adc
commit a952dad8d3
2 changed files with 5 additions and 10 deletions
@@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Projects;
use Tests\E2E\Client;
use Utopia\Database\Helpers\ID;
use Utopia\Database\Helpers\Role;
use Utopia\System\System;
trait ProjectsBase
@@ -6009,9 +6009,7 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals(204, $response['headers']['status-code']);
}
/**
* @group ciIgnore
*/
#[Group('ciIgnore')]
public function testProjectSpecificPermissionsForListProjects(): void
{
$teamId = ID::unique();
@@ -6097,9 +6095,7 @@ class ProjectsConsoleClientTest extends Scope
}
}
/**
* @group ciIgnore
*/
#[Group('ciIgnore')]
public function testProjectSpecificPermissionsForUpdateProject(): void
{
$teamId = ID::unique();
@@ -6206,9 +6202,7 @@ class ProjectsConsoleClientTest extends Scope
}
}
/**
* @group ciIgnore
*/
#[Group('ciIgnore')]
public function testProjectSpecificPermissionsForDeleteProject(): void
{
$teamId = ID::unique();
@@ -6305,9 +6299,9 @@ class ProjectsConsoleClientTest extends Scope
}
/**
* @group ciIgnore
* Test project specific permissions for project resources, in this case 'function variables'.
*/
#[Group('ciIgnore')]
public function testProjectSpecificPermissionsForProjectResources(): void
{
$teamId = ID::unique();