PHP Class Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Provider\Google\TwoFactorProviderTest

Afficher le fichier Open project: scheb/two-factor-bundle

Méthodes publiques

Méthode Description
beginAuthentication_interfaceNotImplemented_returnFalse ( )
beginAuthentication_twoFactorDisabled_returnFalse ( )
beginAuthentication_twoFactorPossible_returnTrue ( )
getTrustedOptions ( ) : array Test values for trusted option in requestAuthenticationCode.
requestAuthenticationCode_invalidCode_displayFlashMessage ( )
requestAuthenticationCode_notPostRequest_displayForm ( )
requestAuthenticationCode_postRequest_validateCode ( )
requestAuthenticationCode_trustedOption_assignToTemplate ( $trustedOption )
requestAuthenticationCode_validCode_returnRedirect ( )
requestAuthenticationCode_validCode_setAuthenticated ( )
setUp ( )

Private Methods

Méthode Description
getAuthenticationContext ( PHPUnit_Framework_MockObject_MockObject $user = null, PHPUnit_Framework_MockObject_MockObject $request = null, PHPUnit_Framework_MockObject_MockObject $session = null, boolean $useTrustedOption = true ) : PHPUnit_Framework_MockObject_MockObject
getFlashBag ( ) : PHPUnit_Framework_MockObject_MockObject
getPostCodeRequest ( $code = 12345 ) : PHPUnit_Framework_MockObject_MockObject
getRequest ( ) : PHPUnit_Framework_MockObject_MockObject
getSession ( PHPUnit_Framework_MockObject_MockObject $flashBag = null ) : PHPUnit_Framework_MockObject_MockObject
getUser ( string $secret = 'SECRET' ) : PHPUnit_Framework_MockObject_MockObject
stubGoogleAuthenticator ( boolean $status ) Stub the GoogleAuthenticator checkCode method.

Method Details

beginAuthentication_interfaceNotImplemented_returnFalse() public méthode

beginAuthentication_twoFactorDisabled_returnFalse() public méthode

beginAuthentication_twoFactorPossible_returnTrue() public méthode

getTrustedOptions() public méthode

Test values for trusted option in requestAuthenticationCode.
public getTrustedOptions ( ) : array
Résultat array

requestAuthenticationCode_invalidCode_displayFlashMessage() public méthode

requestAuthenticationCode_notPostRequest_displayForm() public méthode

requestAuthenticationCode_postRequest_validateCode() public méthode

requestAuthenticationCode_trustedOption_assignToTemplate() public méthode

requestAuthenticationCode_validCode_returnRedirect() public méthode

requestAuthenticationCode_validCode_setAuthenticated() public méthode

setUp() public méthode

public setUp ( )