diff --git a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ForgotPasswordTest.php b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ForgotPasswordTest.php index 3db489c62..87e041686 100644 --- a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ForgotPasswordTest.php +++ b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ForgotPasswordTest.php @@ -18,8 +18,8 @@ class ForgotPasswordTest extends ApiTestCase protected bool $auth = false; protected array $access = [ - 'roles' => '', 'permissions' => '', + 'roles' => '', ]; public function testForgotPassword(): void diff --git a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/GetAuthenticatedUserTest.php b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/GetAuthenticatedUserTest.php index 20eeeba7b..3ebd90064 100644 --- a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/GetAuthenticatedUserTest.php +++ b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/GetAuthenticatedUserTest.php @@ -16,8 +16,8 @@ class GetAuthenticatedUserTest extends ApiTestCase protected string $endpoint = 'get@v1/profile'; protected array $access = [ - 'roles' => '', 'permissions' => '', + 'roles' => '', ]; public function testGetAuthenticatedUser(): void diff --git a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/RegisterUserTest.php b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/RegisterUserTest.php index 3926b5513..17033a492 100644 --- a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/RegisterUserTest.php +++ b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/RegisterUserTest.php @@ -18,8 +18,8 @@ class RegisterUserTest extends ApiTestCase protected bool $auth = false; protected array $access = [ - 'roles' => '', 'permissions' => '', + 'roles' => '', ]; public function testGivenEmailVerificationEnabled_RegisterNewUserWithCredentials(): void diff --git a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ResetPasswordTest.php b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ResetPasswordTest.php index a6eea5f32..8aad031c8 100644 --- a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ResetPasswordTest.php +++ b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/ResetPasswordTest.php @@ -17,8 +17,8 @@ class ResetPasswordTest extends ApiTestCase protected string $endpoint = 'post@v1/password/reset'; protected array $access = [ - 'roles' => '', 'permissions' => '', + 'roles' => '', ]; public function testResetPassword(): void diff --git a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/VerifyEmailTest.php b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/VerifyEmailTest.php index a10f59beb..6a01c6df1 100644 --- a/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/VerifyEmailTest.php +++ b/app/Containers/AppSection/Authentication/UI/API/Tests/Functional/VerifyEmailTest.php @@ -18,8 +18,8 @@ class VerifyEmailTest extends ApiTestCase protected string $endpoint = 'post@v1/email/verify/{id}/{hash}'; protected array $access = [ - 'roles' => '', 'permissions' => '', + 'roles' => '', ]; public function testVerifyEmail(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AssignRolesToUserTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AssignRolesToUserTest.php index aa8c0dff4..f38908a4e 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AssignRolesToUserTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AssignRolesToUserTest.php @@ -19,8 +19,8 @@ class AssignRolesToUserTest extends ApiTestCase protected string $endpoint = 'post@v1/roles/assign?include=roles'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-admins-access', + 'roles' => '', ]; public function testAssignRoleToUser(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AttachPermissionsToRoleTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AttachPermissionsToRoleTest.php index a21cd5175..ca146ba4a 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AttachPermissionsToRoleTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/AttachPermissionsToRoleTest.php @@ -19,8 +19,8 @@ class AttachPermissionsToRoleTest extends ApiTestCase protected string $endpoint = 'post@v1/permissions/attach'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testAttachSinglePermissionToRole(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/CreateRoleTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/CreateRoleTest.php index f1812c173..e244cadab 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/CreateRoleTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/CreateRoleTest.php @@ -16,8 +16,8 @@ class CreateRoleTest extends ApiTestCase protected string $endpoint = 'post@v1/roles'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testCreateRole(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DeleteRoleTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DeleteRoleTest.php index e7f92dadc..06c15c85b 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DeleteRoleTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DeleteRoleTest.php @@ -18,8 +18,8 @@ class DeleteRoleTest extends ApiTestCase protected string $endpoint = 'delete@v1/roles/{id}'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testDeleteExistingRole(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DetachPermissionsFromRoleTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DetachPermissionsFromRoleTest.php index 3be3a3131..c176eaead 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DetachPermissionsFromRoleTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/DetachPermissionsFromRoleTest.php @@ -19,8 +19,8 @@ class DetachPermissionsFromRoleTest extends ApiTestCase protected string $endpoint = 'post@v1/permissions/detach'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testDetachSinglePermissionFromRole(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindPermissionTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindPermissionTest.php index 22d333b18..0225ce9d2 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindPermissionTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindPermissionTest.php @@ -16,8 +16,8 @@ class FindPermissionTest extends ApiTestCase protected string $endpoint = 'get@v1/permissions/{id}'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testFindPermissionById(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindRoleTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindRoleTest.php index 36e278fc4..d4187660c 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindRoleTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/FindRoleTest.php @@ -16,8 +16,8 @@ class FindRoleTest extends ApiTestCase protected string $endpoint = 'get@v1/roles/{id}'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testFindRoleById(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllPermissionsTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllPermissionsTest.php index df9edb89c..57e1cbc25 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllPermissionsTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllPermissionsTest.php @@ -15,8 +15,8 @@ class GetAllPermissionsTest extends ApiTestCase protected string $endpoint = 'get@v1/permissions'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testGetAllPermissions(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllRolesTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllRolesTest.php index a7d463d77..7189fcfca 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllRolesTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/GetAllRolesTest.php @@ -15,8 +15,8 @@ class GetAllRolesTest extends ApiTestCase protected string $endpoint = 'get@v1/roles'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testGetAllRoles(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/RevokeRolesFromUserTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/RevokeRolesFromUserTest.php index b38f7aeb5..ae1215b06 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/RevokeRolesFromUserTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/RevokeRolesFromUserTest.php @@ -19,8 +19,8 @@ class RevokeRolesFromUserTest extends ApiTestCase protected string $endpoint = 'post@v1/roles/revoke'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-admins-access', + 'roles' => '', ]; public function testRevokeRolesFromUser(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncPermissionsOnRoleTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncPermissionsOnRoleTest.php index 3e41a4366..8be530f4d 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncPermissionsOnRoleTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncPermissionsOnRoleTest.php @@ -19,8 +19,8 @@ class SyncPermissionsOnRoleTest extends ApiTestCase protected string $endpoint = 'post@v1/permissions/sync'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-roles', + 'roles' => '', ]; public function testSyncDuplicatedPermissionsToRole(): void diff --git a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncUserRolesTest.php b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncUserRolesTest.php index 18ffb35bb..deb00dc8f 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncUserRolesTest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Tests/Functional/SyncUserRolesTest.php @@ -19,8 +19,8 @@ class SyncUserRolesTest extends ApiTestCase protected string $endpoint = 'post@v1/roles/sync'; protected array $access = [ - 'roles' => '', 'permissions' => 'manage-admins-access', + 'roles' => '', ]; public function testSyncMultipleRolesOnUser(): void diff --git a/app/Containers/AppSection/User/UI/API/Tests/Functional/DeleteUserTest.php b/app/Containers/AppSection/User/UI/API/Tests/Functional/DeleteUserTest.php index ed0a279a3..39a3fa946 100644 --- a/app/Containers/AppSection/User/UI/API/Tests/Functional/DeleteUserTest.php +++ b/app/Containers/AppSection/User/UI/API/Tests/Functional/DeleteUserTest.php @@ -16,8 +16,8 @@ class DeleteUserTest extends ApiTestCase protected string $endpoint = 'delete@v1/users/{id}'; protected array $access = [ - 'roles' => '', 'permissions' => 'delete-users', + 'roles' => '', ]; public function testDeleteExistingUser(): void diff --git a/app/Containers/AppSection/User/UI/API/Tests/Functional/FindUserByIdTest.php b/app/Containers/AppSection/User/UI/API/Tests/Functional/FindUserByIdTest.php index c80d2e872..381e002a9 100644 --- a/app/Containers/AppSection/User/UI/API/Tests/Functional/FindUserByIdTest.php +++ b/app/Containers/AppSection/User/UI/API/Tests/Functional/FindUserByIdTest.php @@ -17,8 +17,8 @@ class FindUserByIdTest extends ApiTestCase protected string $endpoint = 'get@v1/users/{id}'; protected array $access = [ - 'roles' => '', 'permissions' => 'search-users', + 'roles' => '', ]; public function testFindUser(): void diff --git a/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php b/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php index b146d1cad..80a6cb459 100644 --- a/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php +++ b/app/Containers/AppSection/User/UI/API/Tests/Functional/GetAllUsersTest.php @@ -17,8 +17,8 @@ class GetAllUsersTest extends ApiTestCase protected string $endpoint = 'get@v1/users'; protected array $access = [ - 'roles' => '', 'permissions' => 'list-users', + 'roles' => '', ]; public function testGetAllUsersByAdmin(): void diff --git a/app/Containers/AppSection/User/UI/API/Tests/Functional/UpdateUserTest.php b/app/Containers/AppSection/User/UI/API/Tests/Functional/UpdateUserTest.php index 7176002e8..deea0c228 100644 --- a/app/Containers/AppSection/User/UI/API/Tests/Functional/UpdateUserTest.php +++ b/app/Containers/AppSection/User/UI/API/Tests/Functional/UpdateUserTest.php @@ -17,8 +17,8 @@ class UpdateUserTest extends ApiTestCase protected string $endpoint = 'patch@v1/users/{id}'; protected array $access = [ - 'roles' => '', 'permissions' => 'update-users', + 'roles' => '', ]; public function testUpdateExistingUser(): void