Skip to content

Commit

Permalink
test for Role::getPermissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmleroux committed Jun 16, 2014
1 parent 6b5f3e6 commit 74fceb2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/RbacTest/Role/RoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,9 @@ public function testRoleCanGetPermissions()
$role->addPermission('foo');
$role->addPermission('bar');

$permission = $this->getMock('Rbac\Permission\PermissionInterface');
$permission->expects($this->once())->method('__toString')->will($this->returnValue('baz'));
$role->addPermission($permission);

$expectedPermissions = [
'foo' => 'foo',
'bar' => 'bar',
'baz' => $permission,
];
$this->assertEquals($expectedPermissions, $role->getPermissions());
}
Expand Down

0 comments on commit 74fceb2

Please sign in to comment.