Begin Google authentication process.
public beginAuthentication ( Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface $context ) : boolean | ||
$context | Scheb\TwoFactorBundle\Security\TwoFactor\AuthenticationContextInterface | |
Résultat | boolean |
/** * @test */ public function beginAuthentication_interfaceNotImplemented_returnFalse() { $user = new \stdClass(); //Any class without TwoFactorInterface $context = $this->getAuthenticationContext($user); $returnValue = $this->provider->beginAuthentication($context); $this->assertFalse($returnValue); }