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

Show file Open project: scheb/two-factor-bundle

Public Methods

Method 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

Method Description
getRequest ( )
getTrustedFilter ( $authHandler, $cookieManager, $enableTrustedOption )

Method Details

beginAuthentication_isTrustedComputer_notCallAuthenticationHandler() public method

beginAuthentication_notTrustedComputer_callAuthenticationHandler() public method

beginAuthentication_trustedOptionNotUsed_setUseTrustedOptionFalse() public method

beginAuthentication_trustedOptionUsedOnlyIfContextAllows() public method

beginAuthentication_trustedOptionUsed_checkTrustedCookie() public method

beginAuthentication_trustedOptionUsed_setUseTrustedOptionTrue() public method

getAuthenticationContext() public method

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

getResponse() public method

public getResponse ( )

getResponseAndExpectedReturnValue() public method

Return test data for response and expected return value.

getUser() public method

public getUser ( )

requestAuthenticationCode_authenticatedAndTrustedChecked_setTrustedCookie() public method

requestAuthenticationCode_authenticatedTrustedNotChecked_notSetTrustedCookie() public method

requestAuthenticationCode_createNoResponse_returnNull() public method

requestAuthenticationCode_notAuthenticated_notSetTrustedCookie() public method

requestAuthenticationCode_responseCreated_returnResponse() public method

requestAuthenticationCode_shouldCheckIfTrustedIsAllowedByContext() public method

requestAuthenticationCode_trustedOptionNotUsed_setUseTrustedOptionFalse() public method

requestAuthenticationCode_trustedOptionUsed_setUseTrustedOptionTrue() public method

setUp() public method

public setUp ( )