Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Apr 8, 2022
1 parent f60e8c4 commit aeffb08
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class ForgotPasswordTest extends ApiTestCase
protected bool $auth = false;

protected array $access = [
'roles' => '',
'permissions' => '',
'roles' => '',
];

public function testForgotPassword(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class GetAuthenticatedUserTest extends ApiTestCase
protected string $endpoint = 'get@v1/profile';

protected array $access = [
'roles' => '',
'permissions' => '',
'roles' => '',
];

public function testGetAuthenticatedUser(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class RegisterUserTest extends ApiTestCase
protected bool $auth = false;

protected array $access = [
'roles' => '',
'permissions' => '',
'roles' => '',
];

public function testGivenEmailVerificationEnabled_RegisterNewUserWithCredentials(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aeffb08

Please sign in to comment.