Neos\Flow\Tests\Unit\Security\Aspect\PolicyEnforcementAspectTest::enforcePolicyDoesNotInvokeInterceptorIfAuthorizationChecksAreDisabled PHP Метод

enforcePolicyDoesNotInvokeInterceptorIfAuthorizationChecksAreDisabled() публичный Метод

    public function enforcePolicyDoesNotInvokeInterceptorIfAuthorizationChecksAreDisabled()
    {
        $this->mockAdviceChain->expects($this->once())->method('proceed')->with($this->mockJoinPoint);
        $this->mockJoinPoint->expects($this->once())->method('getAdviceChain')->will($this->returnValue($this->mockAdviceChain));
        $this->mockSecurityContext->expects($this->atLeastOnce())->method('areAuthorizationChecksDisabled')->will($this->returnValue(true));
        $this->mockPolicyEnforcementInterceptor->expects($this->never())->method('invoke');
        $this->policyEnforcementAspect->enforcePolicy($this->mockJoinPoint);
    }