PHP Class Neos\Flow\Tests\Unit\Security\AccountTest

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

Protected Properties

Свойство Type Description
$account Neos\Flow\Security\Account
$administratorRole Neos\Flow\Security\Policy\Role
$customerRole Neos\Flow\Security\Policy\Role

Méthodes publiques

Méthode Description
addRoleAddsRoleToAccountIfNotAssigned ( )
addRoleSkipsRoleIfAssigned ( )
expirationDateCanBeSetNull ( )
getRolesReturnsOnlyExistingRoles ( )
hasRoleReturnsFalseForAssignedButNonExistentRole ( )
hasRoleWorks ( )
isActiveReturnsFalseIfTheAccountHasAnExpirationDateInThePast ( )
isActiveReturnsTrueIfTheAccountHasAnExpirationDateInTheFuture ( )
isActiveReturnsTrueIfTheAccountHasNoExpirationDate ( )
removeRoleRemovesRoleFromAccountIfAssigned ( )
removeRoleSkipsRemovalIfRoleNotAssigned ( )
setRolesWorks ( )
setUp ( ) Setup function for the test case

Method Details

addRoleAddsRoleToAccountIfNotAssigned() public méthode

addRoleSkipsRoleIfAssigned() public méthode

expirationDateCanBeSetNull() public méthode

getRolesReturnsOnlyExistingRoles() public méthode

hasRoleReturnsFalseForAssignedButNonExistentRole() public méthode

hasRoleWorks() public méthode

public hasRoleWorks ( )

isActiveReturnsFalseIfTheAccountHasAnExpirationDateInThePast() public méthode

isActiveReturnsTrueIfTheAccountHasAnExpirationDateInTheFuture() public méthode

isActiveReturnsTrueIfTheAccountHasNoExpirationDate() public méthode

removeRoleRemovesRoleFromAccountIfAssigned() public méthode

removeRoleSkipsRemovalIfRoleNotAssigned() public méthode

setRolesWorks() public méthode

public setRolesWorks ( )

setUp() public méthode

Setup function for the test case
public setUp ( )

Property Details

$account protected_oe property

protected Account,Neos\Flow\Security $account
Résultat Neos\Flow\Security\Account

$administratorRole protected_oe property

protected Role,Neos\Flow\Security\Policy $administratorRole
Résultat Neos\Flow\Security\Policy\Role

$customerRole protected_oe property

protected Role,Neos\Flow\Security\Policy $customerRole
Résultat Neos\Flow\Security\Policy\Role