PHP Class Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Trusted\TrustedFilterTest

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

Méthodes publiques

Méthode Description
beginAuthentication_isTrustedComputer_notCallAuthenticationHandler ( )
beginAuthentication_notTrustedComputer_callAuthenticationHandler ( )
beginAuthentication_trustedOptionNotUsed_setUseTrustedOptionFalse ( )
beginAuthentication_trustedOptionUsedOnlyIfContextAllows ( )
beginAuthentication_trustedOptionUsed_checkTrustedCookie ( )
beginAuthentication_trustedOptionUsed_setUseTrustedOptionTrue ( )
getAuthenticationContext ( $request = null, $user = null )
getResponse ( )
getResponseAndExpectedReturnValue ( ) : array Return test data for response and expected return value.
getUser ( )
requestAuthenticationCode_authenticatedAndTrustedChecked_setTrustedCookie ( )
requestAuthenticationCode_authenticatedTrustedNotChecked_notSetTrustedCookie ( )
requestAuthenticationCode_createNoResponse_returnNull ( $response )
requestAuthenticationCode_notAuthenticated_notSetTrustedCookie ( )
requestAuthenticationCode_responseCreated_returnResponse ( )
requestAuthenticationCode_shouldCheckIfTrustedIsAllowedByContext ( )
requestAuthenticationCode_trustedOptionNotUsed_setUseTrustedOptionFalse ( )
requestAuthenticationCode_trustedOptionUsed_setUseTrustedOptionTrue ( )
setUp ( )

Private Methods

Méthode Description
getRequest ( )
getTrustedFilter ( $authHandler, $cookieManager, $enableTrustedOption )

Method Details

beginAuthentication_isTrustedComputer_notCallAuthenticationHandler() public méthode

beginAuthentication_notTrustedComputer_callAuthenticationHandler() public méthode

beginAuthentication_trustedOptionNotUsed_setUseTrustedOptionFalse() public méthode

beginAuthentication_trustedOptionUsedOnlyIfContextAllows() public méthode

beginAuthentication_trustedOptionUsed_checkTrustedCookie() public méthode

beginAuthentication_trustedOptionUsed_setUseTrustedOptionTrue() public méthode

getAuthenticationContext() public méthode

public getAuthenticationContext ( $request = null, $user = null )

getResponse() public méthode

public getResponse ( )

getResponseAndExpectedReturnValue() public méthode

Return test data for response and expected return value.

getUser() public méthode

public getUser ( )

requestAuthenticationCode_authenticatedAndTrustedChecked_setTrustedCookie() public méthode

requestAuthenticationCode_authenticatedTrustedNotChecked_notSetTrustedCookie() public méthode

requestAuthenticationCode_createNoResponse_returnNull() public méthode

requestAuthenticationCode_notAuthenticated_notSetTrustedCookie() public méthode

requestAuthenticationCode_responseCreated_returnResponse() public méthode

requestAuthenticationCode_shouldCheckIfTrustedIsAllowedByContext() public méthode

requestAuthenticationCode_trustedOptionNotUsed_setUseTrustedOptionFalse() public méthode

requestAuthenticationCode_trustedOptionUsed_setUseTrustedOptionTrue() public méthode

setUp() public méthode

public setUp ( )