Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Trusted\TrustedFilterTest::beginAuthentication_isTrustedComputer_notCallAuthenticationHandler PHP Method

beginAuthentication_isTrustedComputer_notCallAuthenticationHandler() public method

    public function beginAuthentication_isTrustedComputer_notCallAuthenticationHandler()
    {
        $context = $this->getAuthenticationContext();
        $context->expects($this->once())->method('useTrustedOption')->willReturn(true);
        //Stub the TrustedCookieManager
        $this->cookieManager->expects($this->any())->method('isTrustedComputer')->willReturn(true);
        //Mock the authentication handler
        $this->authHandler->expects($this->never())->method('beginAuthentication');
        $this->trustedFilter->beginAuthentication($context);
    }