Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Trusted\TrustedFilterTest::beginAuthentication_trustedOptionUsed_checkTrustedCookie PHP Метод

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

    public function beginAuthentication_trustedOptionUsed_checkTrustedCookie()
    {
        $request = $this->getRequest();
        $user = $this->getUser();
        $context = $this->getAuthenticationContext();
        $context->expects($this->once())->method('useTrustedOption')->willReturn(true);
        //Mock the TrustedCookieManager
        $this->cookieManager->expects($this->once())->method('isTrustedComputer')->with($request, $user);
        $this->authHandler->expects($this->once())->method('beginAuthentication');
        $this->trustedFilter->beginAuthentication($context);
    }