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

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство 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

Méthodes publiques

Méthode Description
isGrantedDeniesAccessIfADenyPrivilegeWasConfiguredForOneOfTheRoles ( )
isGrantedGrantsAccessIfAGrantPrivilegeAndNoDenyPrivilegeWasConfigured ( )
isGrantedGrantsAccessIfNoPolicyEntryCouldBeFound ( )
isGrantedGrantsAccessIfNoRolesAreAvailable ( )
isGrantedGrantsIfNoPrivilegeWasConfigured ( )
isPrivilegeTargetGrantedPrivilegeReturnsTrueIfAllVotersAbstainAndAllowAccessIfAllVotersAbstainIsTrue ( )
isPrivilegeTargetGrantedReturnsFalseIfAllVotersAbstainAndAllowAccessIfAllVotersAbstainIsFalse ( )
isPrivilegeTargetGrantedReturnsFalseIfOneVoterReturnsADenyVote ( )
isPrivilegeTargetGrantedReturnsTrueIfThereIsNoDenyVoteAndOneGrantVote ( )
setUp ( ) : void

Method Details

isGrantedDeniesAccessIfADenyPrivilegeWasConfiguredForOneOfTheRoles() public méthode

isGrantedGrantsAccessIfAGrantPrivilegeAndNoDenyPrivilegeWasConfigured() public méthode

isGrantedGrantsAccessIfNoPolicyEntryCouldBeFound() public méthode

isGrantedGrantsAccessIfNoRolesAreAvailable() public méthode

isGrantedGrantsIfNoPrivilegeWasConfigured() public méthode

isPrivilegeTargetGrantedPrivilegeReturnsTrueIfAllVotersAbstainAndAllowAccessIfAllVotersAbstainIsTrue() public méthode

isPrivilegeTargetGrantedReturnsFalseIfAllVotersAbstainAndAllowAccessIfAllVotersAbstainIsFalse() public méthode

isPrivilegeTargetGrantedReturnsFalseIfOneVoterReturnsADenyVote() public méthode

isPrivilegeTargetGrantedReturnsTrueIfThereIsNoDenyVoteAndOneGrantVote() public méthode

setUp() public méthode

public setUp ( ) : void
Résultat void

Property Details

$abstainPrivilege protected_oe property

protected PrivilegeInterface,Neos\Flow\Security\Authorization\Privilege|PHPUnit_Framework_MockObject_MockObject $abstainPrivilege
Résultat Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject

$denyPrivilege protected_oe property

protected PrivilegeInterface,Neos\Flow\Security\Authorization\Privilege|PHPUnit_Framework_MockObject_MockObject $denyPrivilege
Résultat Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject

$grantPrivilege protected_oe property

protected PrivilegeInterface,Neos\Flow\Security\Authorization\Privilege|PHPUnit_Framework_MockObject_MockObject $grantPrivilege
Résultat Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | PHPUnit_Framework_MockObject_MockObject

$mockJoinPoint protected_oe property

protected JoinPointInterface,Neos\Flow\Aop|PHPUnit_Framework_MockObject_MockObject $mockJoinPoint
Résultat Neos\Flow\Aop\JoinPointInterface | PHPUnit_Framework_MockObject_MockObject

$mockObjectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockSecurityContext protected_oe property

protected Context,Neos\Flow\Security|PHPUnit_Framework_MockObject_MockObject $mockSecurityContext
Résultat Neos\Flow\Security\Context | PHPUnit_Framework_MockObject_MockObject

$privilegeManager protected_oe property

protected PrivilegeManager,Neos\Flow\Security\Authorization $privilegeManager
Résultat Neos\Flow\Security\Authorization\PrivilegeManager