Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Role::getPermissions #15

Merged
merged 3 commits into from
Jun 22, 2014
Merged

Role::getPermissions #15

merged 3 commits into from
Jun 22, 2014

Conversation

jmleroux
Copy link
Contributor

Can be usefull to get the role permissions

Can be usefull to get the role permissions
$role->addPermission('bar');

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to test this behavior here. foo and bar are enough.

@danizord
Copy link
Contributor

👍

bakura10 added a commit that referenced this pull request Jun 22, 2014
@bakura10 bakura10 merged commit 56cbb81 into zf-fr:master Jun 22, 2014
@jmleroux jmleroux deleted the patch-1 branch June 22, 2014 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants