Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/coding-standards' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/AclTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1210,8 +1210,8 @@ public function testAclPassesPrivilegeToAssertClass()
$acl = new Acl\Acl();
$acl->addRole('role');
$acl->addResource('resource');
$acl->allow('role',null,null,$assertion);
$allowed = $acl->isAllowed('role','resource','privilege',$assertion);
$acl->allow('role', null, null, $assertion);
$allowed = $acl->isAllowed('role','resource','privilege', $assertion);

$this->assertTrue($allowed);
}
Expand All @@ -1221,7 +1221,7 @@ public function testAclPassesPrivilegeToAssertClass()
*/
public function testgetRoles()
{
$this->assertEquals(array(),$this->_acl->getRoles());
$this->assertEquals(array(), $this->_acl->getRoles());

$roleGuest = new Role\GenericRole('guest');
$this->_acl->addRole($roleGuest);
Expand All @@ -1238,7 +1238,7 @@ public function testgetRoles()
*/
public function testgetResources()
{
$this->assertEquals(array(),$this->_acl->getResources());
$this->assertEquals(array(), $this->_acl->getResources());

$this->_acl->addResource(new Resource\GenericResource('someResource'));
$this->_acl->addResource(new Resource\GenericResource('someOtherResource'));
Expand Down

0 comments on commit 6c132b6

Please sign in to comment.