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

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

Protected Properties

Property Type Description
$account Neos\Flow\Security\Account
$administratorRole Neos\Flow\Security\Policy\Role
$customerRole Neos\Flow\Security\Policy\Role

Public Methods

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

Method Details

addRoleAddsRoleToAccountIfNotAssigned() public method

addRoleSkipsRoleIfAssigned() public method

expirationDateCanBeSetNull() public method

getRolesReturnsOnlyExistingRoles() public method

hasRoleReturnsFalseForAssignedButNonExistentRole() public method

hasRoleWorks() public method

public hasRoleWorks ( )

isActiveReturnsFalseIfTheAccountHasAnExpirationDateInThePast() public method

isActiveReturnsTrueIfTheAccountHasAnExpirationDateInTheFuture() public method

isActiveReturnsTrueIfTheAccountHasNoExpirationDate() public method

removeRoleRemovesRoleFromAccountIfAssigned() public method

removeRoleSkipsRemovalIfRoleNotAssigned() public method

setRolesWorks() public method

public setRolesWorks ( )

setUp() public method

Setup function for the test case
public setUp ( )

Property Details

$account protected property

protected Account,Neos\Flow\Security $account
return Neos\Flow\Security\Account

$administratorRole protected property

protected Role,Neos\Flow\Security\Policy $administratorRole
return Neos\Flow\Security\Policy\Role

$customerRole protected property

protected Role,Neos\Flow\Security\Policy $customerRole
return Neos\Flow\Security\Policy\Role