function it_can_grant_access_to_roles_by_appending_actions($resourceObject, $groupRules, $groupActionRule)
    {
        $role = $this->getRoleWithName('user');
        $groupRules->update(Argument::any())->shouldBeCalled();
        $groupActionRule->addAction('foo')->shouldBeCalled();
        $this->grantRoleAccess($role, $resourceObject, 'foo');
    }
function it_can_grant_access_to_roles_by_appending_actions($resourceObject, $groupRules, $groupActionRule)
    {
        $role = $this->getRoleWithName('user');
        $groupRules->update(Argument::any())->shouldBeCalled();
        $groupActionRule->addAction('foo')->shouldBeCalled();
        $this->grantRoleAccess($role, $resourceObject, 'foo');
    }
function it_can_grant_access_to_roles_by_appending_actions ( $ resourceObject , $ groupRules , $ groupActionRule ) { $ role = $ this -> getRoleWithName ( 'user' ) ; $ groupRules -> update ( Argument :: any ( ) ) -> shouldBeCalled ( ) ; $ groupActionRule -> addAction ( 'foo' ) -> shouldBeCalled ( ) ; $ this -> grantRoleAccess ( $ role , $ resourceObject , 'foo' ) ; }
Give a role, access to a resource
Give a role access to a resource