#72449Cookies for frontend requests
Description
In a functional test I need to test Extbase controller which depends on Frontend user sessions. The current \TYPO3\CMS\Core\Tests\FunctionalTestCase::getFrontendResponse() doesn’t allow me to pass cookies to the Frontend and \TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\Response doesn’t allow me to fetch cookies from the Frontend. My proposal would be:
class FunctionalTestCase {
protected function getFrontendResponse($pageId, $languageId = 0, $backendUserId = 0, $workspaceId = 0, $failOnFailure = true, $frontendUserId = 0, array $cookies = array()) {
[...]
}
}
class Response {
/**
* @return array|NULL
*/
public function getCookies() {
[...]
}
}
I’ve already implemented this by using xdebug_get_headers which would be a dependencies for this feature. So I could contribute if you want.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.