PHP Class Neos\Flow\Tests\Unit\Security\Authorization\PrivilegeManagerTest

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

Protected Properties

Property Type Description
$abstainPrivilege Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject
$denyPrivilege Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject
$grantPrivilege Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject
$mockJoinPoint Neos\Flow\Aop\JoinPointInterface | PHPUnit_Framework_MockObject_MockObject
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockSecurityContext Neos\Flow\Security\Context | PHPUnit_Framework_MockObject_MockObject
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManager

Public Methods

Method Description
isGrantedDeniesAccessIfADenyPrivilegeWasConfiguredForOneOfTheRoles ( )
isGrantedGrantsAccessIfAGrantPrivilegeAndNoDenyPrivilegeWasConfigured ( )
isGrantedGrantsAccessIfNoPolicyEntryCouldBeFound ( )
isGrantedGrantsAccessIfNoRolesAreAvailable ( )
isGrantedGrantsIfNoPrivilegeWasConfigured ( )
isPrivilegeTargetGrantedPrivilegeReturnsTrueIfAllVotersAbstainAndAllowAccessIfAllVotersAbstainIsTrue ( )
isPrivilegeTargetGrantedReturnsFalseIfAllVotersAbstainAndAllowAccessIfAllVotersAbstainIsFalse ( )
isPrivilegeTargetGrantedReturnsFalseIfOneVoterReturnsADenyVote ( )
isPrivilegeTargetGrantedReturnsTrueIfThereIsNoDenyVoteAndOneGrantVote ( )
setUp ( ) : void

Method Details

isGrantedDeniesAccessIfADenyPrivilegeWasConfiguredForOneOfTheRoles() public method

isGrantedGrantsAccessIfAGrantPrivilegeAndNoDenyPrivilegeWasConfigured() public method

isGrantedGrantsAccessIfNoPolicyEntryCouldBeFound() public method

isGrantedGrantsAccessIfNoRolesAreAvailable() public method

isGrantedGrantsIfNoPrivilegeWasConfigured() public method

isPrivilegeTargetGrantedPrivilegeReturnsTrueIfAllVotersAbstainAndAllowAccessIfAllVotersAbstainIsTrue() public method

isPrivilegeTargetGrantedReturnsFalseIfAllVotersAbstainAndAllowAccessIfAllVotersAbstainIsFalse() public method

isPrivilegeTargetGrantedReturnsFalseIfOneVoterReturnsADenyVote() public method

isPrivilegeTargetGrantedReturnsTrueIfThereIsNoDenyVoteAndOneGrantVote() public method

setUp() public method

public setUp ( ) : void
return void

Property Details

$abstainPrivilege protected property

protected PrivilegeInterface,Neos\Flow\Security\Authorization\Privilege|PHPUnit_Framework_MockObject_MockObject $abstainPrivilege
return Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject

$denyPrivilege protected property

protected PrivilegeInterface,Neos\Flow\Security\Authorization\Privilege|PHPUnit_Framework_MockObject_MockObject $denyPrivilege
return Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject

$grantPrivilege protected property

protected PrivilegeInterface,Neos\Flow\Security\Authorization\Privilege|PHPUnit_Framework_MockObject_MockObject $grantPrivilege
return Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject

$mockJoinPoint protected property

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

$mockObjectManager protected property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockSecurityContext protected property

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

$privilegeManager protected property

protected PrivilegeManager,Neos\Flow\Security\Authorization $privilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManager