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

enforcePolicyPassesTheGivenJoinPointOverToThePolicyEnforcementInterceptor() public method

    public function enforcePolicyPassesTheGivenJoinPointOverToThePolicyEnforcementInterceptor()
    {
        $this->mockJoinPoint->expects($this->once())->method('getAdviceChain')->will($this->returnValue($this->mockAdviceChain));
        $this->mockPolicyEnforcementInterceptor->expects($this->once())->method('setJoinPoint')->with($this->mockJoinPoint);
        $this->policyEnforcementAspect->enforcePolicy($this->mockJoinPoint);
    }