original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Give a role, access to a resource
docstring_tokens: Give a role access to a resource