Neos\Flow\Tests\Functional\Session\SessionManagementTest::aSessionUsedInAFunctionalTestVirtualBrowserSendsCookiesOnEachRequest PHP Method

aSessionUsedInAFunctionalTestVirtualBrowserSendsCookiesOnEachRequest() public method

This test makes sure that if a session is used through the HTTP Browser in a functional test, the Session does not have side effects which result, for example, in a cookie sent only at the end of the first request.
    public function aSessionUsedInAFunctionalTestVirtualBrowserSendsCookiesOnEachRequest()
    {
        $response = $this->browser->request('http://localhost/test/session');
        $this->assertTrue($response->hasCookie('Flow_Testing_Session'), 'Available Cookies are: ' . implode(', ', array_keys($response->getCookies())));
        $response = $this->browser->request('http://localhost/test/session');
        $this->assertTrue($response->hasCookie('Flow_Testing_Session'), 'Available Cookies are: ' . implode(', ', array_keys($response->getCookies())));
    }