Skip to content
Snippets Groups Projects
Commit 07704716 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2676186 by alexpott: XDebug does not work in InstallerTestBase

parent f1279992
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -93,9 +93,10 @@ protected function setUp() {
// @see WebTestBase::translatePostValues()
$this->parameters = $this->installParameters();
// Set up a minimal container (required by WebTestBase).
// Set up a minimal container (required by WebTestBase). Set cookie and
// server information so that XDebug works.
// @see install_begin_request()
$request = Request::create($GLOBALS['base_url'] . '/core/install.php');
$request = Request::create($GLOBALS['base_url'] . '/core/install.php', 'GET', [], $_COOKIE, [], $_SERVER);
$this->container = new ContainerBuilder();
$request_stack = new RequestStack();
$request_stack->push($request);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment