PHP Класс Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Provider\Email\TwoFactorProviderTest

Наследование: extends Scheb\TwoFactorBundle\Tests\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
beginAuthentication_interfaceNotImplemented_returnFalse ( )
beginAuthentication_twoFactorDisabled_returnFalse ( )
beginAuthentication_twoFactorPossible_codeGenerated ( )
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 ( )

Приватные методы

Метод Описание
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 ( boolean $emailAuthEnabled = true ) : PHPUnit_Framework_MockObject_MockObject
stubAuthCodeManager ( boolean $status ) Stub the CodeGenerator checkCode method.

Описание методов

beginAuthentication_interfaceNotImplemented_returnFalse() публичный Метод

beginAuthentication_twoFactorDisabled_returnFalse() публичный Метод

beginAuthentication_twoFactorPossible_codeGenerated() публичный Метод

beginAuthentication_twoFactorPossible_returnTrue() публичный Метод

getTrustedOptions() публичный Метод

Test values for trusted option in requestAuthenticationCode.
public getTrustedOptions ( ) : array
Результат array

requestAuthenticationCode_invalidCode_displayFlashMessage() публичный Метод

requestAuthenticationCode_notPostRequest_displayForm() публичный Метод

requestAuthenticationCode_postRequest_validateCode() публичный Метод

requestAuthenticationCode_trustedOption_assignToTemplate() публичный Метод

requestAuthenticationCode_validCode_returnRedirect() публичный Метод

requestAuthenticationCode_validCode_setAuthenticated() публичный Метод

setUp() публичный Метод

public setUp ( )