$request = Request::
create($request_path, 'GET',
[],
[],
[],
$server);
// Ensure the request time is REQUEST_TIME to ensure that API calls
// in the test use the right timestamp.
$request->server->
set('REQUEST_TIME', REQUEST_TIME
);
$this->container->
get('request_stack'
)->
push($request);
// The request context is normally set by the router_listener from within
// its KernelEvents::REQUEST listener. In the parent site this event is not
// fired, therefore it is necessary to update the request context manually
// here.
$this->container->
get('router.request_context'
)->
fromRequest($request);
return $request;
} /**
* Execute the non-interactive installer.
*
* @see install_drupal()
*/
protected function doInstall() { require_once DRUPAL_ROOT . '/core/includes/install.core.inc';