diff --git a/tests/Security/Permission.PrivilegeDeny.phpt b/tests/Security/Permission.PrivilegeDeny.phpt index e7628711..1eb8cb16 100644 --- a/tests/Security/Permission.PrivilegeDeny.phpt +++ b/tests/Security/Permission.PrivilegeDeny.phpt @@ -14,6 +14,9 @@ require __DIR__ . '/../bootstrap.php'; $acl = new Permission; +$acl->addRole('admin'); +$acl->allow('admin'); $acl->allow(); $acl->deny(null, null, 'somePrivilege'); Assert::false($acl->isAllowed(null, null, 'somePrivilege')); +Assert::false($acl->isAllowed('admin', null, 'somePrivilege'));