PHP Class Contao\CoreBundle\Test\Security\ContaoAuthenticatorTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
testAuthenticateInvalidToken ( ) Tests authenticating an invalid token.
testAuthenticateToken ( ) Tests authenticating a token.
testAuthenticateTokenWithoutContainer ( ) Tests authenticating a token without the container being set.
testCreateToken ( ) Tests creating an authentication token.
testInstantiation ( ) Tests the object instantiation.
testSupportsToken ( ) Tests the token support.

Private Methods

Method Description
mockUser ( ) : User | PHPUnit_Framework_MockObject_MockObject Mocks a user object.
mockUserProvider ( ) : Symfony\Component\Security\Core\User\UserProviderInterface | PHPUnit_Framework_MockObject_MockObject Mocks a user provider object.

Method Details

testAuthenticateInvalidToken() public method

Tests authenticating an invalid token.

testAuthenticateToken() public method

Tests authenticating a token.

testAuthenticateTokenWithoutContainer() public method

Tests authenticating a token without the container being set.

testCreateToken() public method

Tests creating an authentication token.
public testCreateToken ( )

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testSupportsToken() public method

Tests the token support.
public testSupportsToken ( )