PHP Class Neos\Flow\Tests\Unit\Security\Aspect\PolicyEnforcementAspectTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$mockAdviceChain Neos\Flow\Aop\Advice\AdviceChain
$mockJoinPoint Neos\Flow\Aop\JoinPointInterface
$mockPolicyEnforcementInterceptor Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement
$mockSecurityContext Neos\Flow\Security\Context
$policyEnforcementAspect Neos\Flow\Security\Aspect\PolicyEnforcementAspect

Public Methods

Method Description
enforcePolicyCallsTheAdviceChainCorrectly ( )
enforcePolicyCallsThePolicyEnforcementInterceptorCorrectly ( )
enforcePolicyCallsTheTheAfterInvocationInterceptorCorrectly ( )
enforcePolicyDoesNotInvokeInterceptorIfAuthorizationChecksAreDisabled ( )
enforcePolicyPassesTheGivenJoinPointOverToTheAfterInvocationInterceptor ( )
enforcePolicyPassesTheGivenJoinPointOverToThePolicyEnforcementInterceptor ( )
enforcePolicyPassesTheReturnValueOfTheInterceptedMethodOverToTheAfterInvocationInterceptor ( )
enforcePolicyReturnsTheResultOfTheOriginalMethodCorrectly ( )
setUp ( )

Method Details

enforcePolicyCallsTheAdviceChainCorrectly() public method

enforcePolicyCallsThePolicyEnforcementInterceptorCorrectly() public method

enforcePolicyCallsTheTheAfterInvocationInterceptorCorrectly() public method

enforcePolicyDoesNotInvokeInterceptorIfAuthorizationChecksAreDisabled() public method

enforcePolicyPassesTheGivenJoinPointOverToTheAfterInvocationInterceptor() public method

enforcePolicyPassesTheGivenJoinPointOverToThePolicyEnforcementInterceptor() public method

enforcePolicyPassesTheReturnValueOfTheInterceptedMethodOverToTheAfterInvocationInterceptor() public method

enforcePolicyReturnsTheResultOfTheOriginalMethodCorrectly() public method

setUp() public method

public setUp ( )

Property Details

$mockAdviceChain protected property

protected AdviceChain,Neos\Flow\Aop\Advice $mockAdviceChain
return Neos\Flow\Aop\Advice\AdviceChain

$mockJoinPoint protected property

protected JoinPointInterface,Neos\Flow\Aop $mockJoinPoint
return Neos\Flow\Aop\JoinPointInterface

$mockPolicyEnforcementInterceptor protected property

protected PolicyEnforcement,Neos\Flow\Security\Authorization\Interceptor $mockPolicyEnforcementInterceptor
return Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement

$mockSecurityContext protected property

protected Context,Neos\Flow\Security $mockSecurityContext
return Neos\Flow\Security\Context

$policyEnforcementAspect protected property

protected PolicyEnforcementAspect,Neos\Flow\Security\Aspect $policyEnforcementAspect
return Neos\Flow\Security\Aspect\PolicyEnforcementAspect