Skip to content

Commit fa0b217

Browse files
committed
Added tests for the Auth module.
Signed-off-by: Joshua Parker <joshua@joshuaparker.dev>
1 parent 6f26b3a commit fa0b217

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Auth/RbacTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
$rbac = new Rbac($resource);
2727

28-
Assert::assertInstanceOf(Role::class, $rbac->addRole('role1', 'desc1'));
28+
Assert::assertInstanceOf(Role::class, $rbac->addRole(name: 'role1', description: 'desc1'));
2929
});
3030

3131
it('should create Permission and return Permission instance.', function () use ($resource) {
@@ -38,7 +38,7 @@
3838

3939
Assert::assertInstanceOf(
4040
Permission::class,
41-
$rbac->addPermission('dashboard:view', 'Access dashboard.')
41+
$rbac->addPermission(name: 'dashboard:view', description: 'Access dashboard.')
4242
);
4343
});
4444

@@ -81,5 +81,5 @@
8181

8282
$rbac = new Rbac($resource);
8383

84-
Assert::assertInstanceOf(Permission::class, $rbac->getPermission('perm1'));
84+
Assert::assertInstanceOf(Permission::class, $rbac->getPermission(name: 'perm1'));
8585
});

0 commit comments

Comments
 (0)