Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Provider\TwoFactorProviderRegistryTest::requestAuthenticationCode_notAuthenticated_callTwoFactorProvider PHP Метод

requestAuthenticationCode_notAuthenticated_callTwoFactorProvider() публичный Метод

    public function requestAuthenticationCode_notAuthenticated_callTwoFactorProvider()
    {
        $context = $this->getAuthenticationContext();
        //Stub the SessionFlagManager
        $this->stubIsNotAuthenticated(true);
        //Mock the provider
        $this->provider->expects($this->once())->method('requestAuthenticationCode')->with($context);
        // Must not dispatch event
        $this->eventDispatcher->expects($this->never())->method('dispatch');
        $this->registry->requestAuthenticationCode($context);
    }