beginAuthentication() public method

Check if user is on a trusted computer, otherwise call TwoFactorProviderRegistry.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context )
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
 /**
  * @test
  */
 public function beginAuthentication_notTrustedComputer_callAuthenticationHandler()
 {
     $context = $this->getAuthenticationContext();
     //Stub the TrustedCookieManager
     $this->cookieManager->expects($this->any())->method('isTrustedComputer')->willReturn(false);
     //Mock the authentication handler
     $this->authHandler->expects($this->once())->method('beginAuthentication')->with($context);
     $this->trustedFilter->beginAuthentication($context);
 }