Actions
Feature #72449
closedCookies for frontend requests
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2015-12-27
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
testing-framework
Complexity:
easy
Sprint Focus:
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.
Actions