PHP 클래스 Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Provider\Google\TwoFactorProviderTest

파일 보기 프로젝트 열기: scheb/two-factor-bundle

공개 메소드들

메소드 설명
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 ( )

비공개 메소드들

메소드 설명
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.

메소드 상세

beginAuthentication_interfaceNotImplemented_returnFalse() 공개 메소드

beginAuthentication_twoFactorDisabled_returnFalse() 공개 메소드

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 ( )