Scheb\TwoFactorBundle\Tests\Security\TwoFactor\EventListener\RequestListenerTest::onCoreRequest_pathExcluded_notRequestAuthenticationCode PHP Method

onCoreRequest_pathExcluded_notRequestAuthenticationCode() public method

    public function onCoreRequest_pathExcluded_notRequestAuthenticationCode()
    {
        $event = $this->createEvent('/exclude/someFile');
        $token = $this->createSupportedSecurityToken();
        $this->stubTokenStorage($token);
        //Expect TwoFactorProvider not to be called
        $this->authHandler->expects($this->never())->method('requestAuthenticationCode');
        $this->listener->onCoreRequest($event);
    }