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

resumeSetsSessionCookieInTheResponse() public method

    public function resumeSetsSessionCookieInTheResponse()
    {
        $session = new Session();
        $this->inject($session, 'bootstrap', $this->mockBootstrap);
        $this->inject($session, 'objectManager', $this->mockObjectManager);
        $this->inject($session, 'settings', $this->settings);
        $this->inject($session, 'metaDataCache', $this->createCache('Meta'));
        $this->inject($session, 'storageCache', $this->createCache('Storage'));
        $session->initializeObject();
        $session->start();
        $sessionIdentifier = $session->getId();
        $session->close();
        $session->resume();
        $this->assertTrue($this->httpResponse->hasCookie('TYPO3_Flow_Session'));
        $this->assertEquals($sessionIdentifier, $this->httpResponse->getCookie('TYPO3_Flow_Session')->getValue());
    }
SessionTest