requestAuthenticationCode() public méthode

Ask for email authentication code.
public requestAuthenticationCode ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : Response | null
$context Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface
Résultat Symfony\Component\HttpFoundation\Response | null
 /**
  * @test
  */
 public function requestAuthenticationCode_validCode_returnRedirect()
 {
     $request = $this->getPostCodeRequest();
     $context = $this->getAuthenticationContext(null, $request);
     $this->stubAuthCodeManager(true);
     $returnValue = $this->provider->requestAuthenticationCode($context);
     $this->assertInstanceOf("Symfony\\Component\\HttpFoundation\\RedirectResponse", $returnValue);
     $this->assertEquals("/some/path", $returnValue->getTargetUrl());
 }