Neos\Flow\Tests\Unit\Session\SessionTest::startPutsACookieIntoTheHttpResponse PHP Method

startPutsACookieIntoTheHttpResponse() public method

    public function startPutsACookieIntoTheHttpResponse()
    {
        $session = new Session();
        $this->inject($session, 'bootstrap', $this->mockBootstrap);
        $this->inject($session, 'settings', $this->settings);
        $this->inject($session, 'metaDataCache', $this->createCache('Meta'));
        $this->inject($session, 'storageCache', $this->createCache('Storage'));
        $session->initializeObject();
        $session->start();
        $cookie = $this->httpResponse->getCookie('TYPO3_Flow_Session');
        $this->assertNotNull($cookie);
        $this->assertEquals($session->getId(), $cookie->getValue());
    }
SessionTest