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

beginAuthentication_notTrustedComputer_callAuthenticationHandler() public method

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