PHP Class Neos\Flow\Tests\Unit\Security\Authentication\AuthenticationProviderManagerTest

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

Protected Properties

Property Type Description
$authenticationProviderManager Neos\Flow\Security\Authentication\AuthenticationProviderManager
$mockSecurityContext Neos\Flow\Security\Context | PHPUnit_Framework_MockObject_MockObject
$mockSession Neos\Flow\Session\SessionInterface | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
anExceptionIsThrownIfTheConfiguredProviderDoesNotExist ( )
authenticateAuthenticatesOnlyTokensWithStatusAuthenticationNeeded ( )
authenticateDelegatesAuthenticationToTheCorrectProvidersInTheCorrectOrder ( )
authenticateTagsSessionWithAccountIdentifier ( )
authenticateThrowsAnExceptionIfAuthenticateAllTokensIsTrueButATokenCouldNotBeAuthenticated ( )
authenticateThrowsAnExceptionIfNoTokenCouldBeAuthenticated ( )
isAuthenticatedReturnsFalseIfNoTokenIsAuthenticated ( )
isAuthenticatedReturnsFalseIfNoTokenIsAuthenticatedWithStrategyAnyToken ( )
isAuthenticatedReturnsTrueIfAnTokenCouldBeAuthenticated ( )
isAuthenticatedReturnsTrueIfAtLeastOneTokenIsAuthenticated ( )
isAuthenticatedReturnsTrueIfOneTokenIsAuthenticatedWithStrategyAnyToken ( )
logoutDestroysSessionIfStarted ( )
logoutDoesNotDestroySessionIfNotStarted ( )
logoutEmitsLoggedOutSignalBeforeDestroyingSession ( )
logoutRefreshesTokensInSecurityContext ( )
logoutReturnsIfNoAccountIsAuthenticated ( )
logoutSetsTheAuthenticationStatusOfAllActiveAuthenticationTokensToNoCredentialsGiven ( )
noTokensAndProvidersAreBuiltIfTheConfigurationArrayIsEmpty ( )
setUp ( ) Sets up this test case

Method Details

anExceptionIsThrownIfTheConfiguredProviderDoesNotExist() public method

authenticateAuthenticatesOnlyTokensWithStatusAuthenticationNeeded() public method

authenticateDelegatesAuthenticationToTheCorrectProvidersInTheCorrectOrder() public method

authenticateTagsSessionWithAccountIdentifier() public method

authenticateThrowsAnExceptionIfAuthenticateAllTokensIsTrueButATokenCouldNotBeAuthenticated() public method

authenticateThrowsAnExceptionIfNoTokenCouldBeAuthenticated() public method

isAuthenticatedReturnsFalseIfNoTokenIsAuthenticated() public method

isAuthenticatedReturnsFalseIfNoTokenIsAuthenticatedWithStrategyAnyToken() public method

isAuthenticatedReturnsTrueIfAnTokenCouldBeAuthenticated() public method

isAuthenticatedReturnsTrueIfAtLeastOneTokenIsAuthenticated() public method

isAuthenticatedReturnsTrueIfOneTokenIsAuthenticatedWithStrategyAnyToken() public method

logoutDestroysSessionIfStarted() public method

logoutDoesNotDestroySessionIfNotStarted() public method

logoutEmitsLoggedOutSignalBeforeDestroyingSession() public method

logoutRefreshesTokensInSecurityContext() public method

logoutReturnsIfNoAccountIsAuthenticated() public method

logoutSetsTheAuthenticationStatusOfAllActiveAuthenticationTokensToNoCredentialsGiven() public method

noTokensAndProvidersAreBuiltIfTheConfigurationArrayIsEmpty() public method

setUp() public method

Sets up this test case
public setUp ( )

Property Details

$authenticationProviderManager protected property

protected AuthenticationProviderManager,Neos\Flow\Security\Authentication $authenticationProviderManager
return Neos\Flow\Security\Authentication\AuthenticationProviderManager

$mockSecurityContext protected property

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

$mockSession protected property

protected SessionInterface,Neos\Flow\Session|PHPUnit_Framework_MockObject_MockObject $mockSession
return Neos\Flow\Session\SessionInterface | PHPUnit_Framework_MockObject_MockObject