Neos\Flow\Tests\Unit\Security\Aspect\PolicyEnforcementAspectTest::enforcePolicyPassesTheReturnValueOfTheInterceptedMethodOverToTheAfterInvocationInterceptor PHP Method

enforcePolicyPassesTheReturnValueOfTheInterceptedMethodOverToTheAfterInvocationInterceptor() public method

    public function enforcePolicyPassesTheReturnValueOfTheInterceptedMethodOverToTheAfterInvocationInterceptor()
    {
        $this->markTestSkipped('Currently the AfterInvocationInterceptor is not used.');
        $someResult = 'blub';
        $this->mockAdviceChain->expects($this->once())->method('proceed')->will($this->returnValue($someResult));
        $this->mockJoinPoint->expects($this->once())->method('getAdviceChain')->will($this->returnValue($this->mockAdviceChain));
        // $this->mockAfterInvocationInterceptor->expects($this->once())->method('setResult')->with($someResult);
        $this->policyEnforcementAspect->enforcePolicy($this->mockJoinPoint);
    }