diff --git a/core/modules/system/src/Tests/HttpKernel/StackKernelIntegrationTest.php b/core/modules/system/src/Tests/HttpKernel/StackKernelIntegrationTest.php index 8fd1f2c..6018122 100644 --- a/core/modules/system/src/Tests/HttpKernel/StackKernelIntegrationTest.php +++ b/core/modules/system/src/Tests/HttpKernel/StackKernelIntegrationTest.php @@ -40,7 +40,7 @@ protected function setUp() { * Tests a request. */ public function testRequest() { - $request = Request::create((new Url('system.timezone'))->toString()); + $request = Request::create((new Url('httpkernel_test.empty'))->toString()); /** @var \Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel */ $http_kernel = \Drupal::service('http_kernel'); $http_kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, FALSE); diff --git a/core/modules/system/tests/modules/httpkernel_test/httpkernel_test.routing.yml b/core/modules/system/tests/modules/httpkernel_test/httpkernel_test.routing.yml new file mode 100644 index 0000000..7de4338 --- /dev/null +++ b/core/modules/system/tests/modules/httpkernel_test/httpkernel_test.routing.yml @@ -0,0 +1,6 @@ +httpkernel_test.empty: + path: '/httpkernel-test' + defaults: + _controller: '\Drupal\httpkernel_test\Controller\TestController::get' + requirements: + _access: 'TRUE' diff --git a/core/modules/system/tests/modules/httpkernel_test/src/Controller/TestController.php b/core/modules/system/tests/modules/httpkernel_test/src/Controller/TestController.php new file mode 100644 index 0000000..06ca4f6 --- /dev/null +++ b/core/modules/system/tests/modules/httpkernel_test/src/Controller/TestController.php @@ -0,0 +1,24 @@ +