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

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

    public function createTrustedCookie_localhostSkippedInCookie()
    {
        $request = Request::create('');
        $user = $this->createMock('Scheb\\TwoFactorBundle\\Model\\TrustedComputerInterface');
        $cookie = $this->cookieManager->createTrustedCookie($request, $user);
        $this->assertNull($cookie->getDomain());
    }