mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user