Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Trusted\TrustedCookieManagerTest::isTrustedComputer_cookieSet_validateTrustedCodes PHP Метод

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

    public function isTrustedComputer_cookieSet_validateTrustedCodes()
    {
        $user = $this->createMock('Scheb\\TwoFactorBundle\\Model\\TrustedComputerInterface');
        $request = $this->createRequest('trustedCode1;trustedCode2');
        //Mock the TrustedComputerManager object
        $this->trustedComputerManager->expects($this->at(0))->method('isTrustedComputer')->with($user, 'trustedCode1');
        $this->trustedComputerManager->expects($this->at(1))->method('isTrustedComputer')->with($user, 'trustedCode2');
        $this->cookieManager->isTrustedComputer($request, $user);
    }