Scheb\TwoFactorBundle\Tests\Security\TwoFactor\EventListener\InteractiveLoginListenerTest::onSecurityInteractiveLogin_ipWhitelisted_doNothing PHP Method

onSecurityInteractiveLogin_ipWhitelisted_doNothing() public method

    public function onSecurityInteractiveLogin_ipWhitelisted_doNothing()
    {
        $token = $this->createMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface');
        $event = $this->createEvent($token, self::WHITELISTED_IP);
        //Expect TwoFactorProvider not to be called
        $this->authHandler->expects($this->never())->method('beginAuthentication');
        $this->listener->onSecurityInteractiveLogin($event);
    }