/**
* @covers ::bootKernel
*/ publicfunctiontestBootKernel(){ $this->assertNull($this->container->get('request_stack')->getParentRequest(), 'There should only be one request on the stack'); $this->assertEquals('public', \Drupal::config('system.file')->get('default_scheme')); }
/**
* Tests the assumption that local time is in 'Australia/Sydney'.
*/ publicfunctiontestLocalTimeZone(){ // The 'Australia/Sydney' time zone is set in core/tests/bootstrap.php
$this->assertEquals('Australia/Sydney', date_default_timezone_get()); }
/**
* After a sub-request is done, we need to reset the routing context to the parent request so that the URL generator
* operates on the correct context again.
*/ publicfunctiononKernelFinishRequest(): void { $this->setCurrentRequest($this->requestStack->getParentRequest()); }
/**
* After a sub-request is done, we need to reset the routing context to the parent request so that the URL generator
* operates on the correct context again.
*/ publicfunctiononKernelFinishRequest(): void { $this->setCurrentRequest($this->requestStack->getParentRequest()); }