From efc321182b8a82733e4de7a1bb9bfd278bb7f412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=BDurek?= Date: Mon, 7 May 2018 13:15:23 +0200 Subject: [PATCH] test permission deny with role --- tests/Security/Permission.PrivilegeDeny.phpt | 3 +++ 1 file changed, 3 insertions(+) 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'));