Project

General

Profile

Actions

Feature #72449

closed

Cookies for frontend requests

Added by Artus Kolanowski almost 9 years ago. Updated about 7 years ago.

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 #1

Updated by Susanne Moog about 7 years ago

  • Status changed from New to Accepted
  • Tags set to testing-framework
Actions #2

Updated by Susanne Moog about 7 years ago

  • Status changed from Accepted to Closed

We will track this issue in the testing framework project on github, see https://github.com/TYPO3/testing-framework/issues/36

Actions

Also available in: Atom PDF