protected function RouteProviderTest::httpKernelHandle in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php \Drupal\KernelTests\Core\Entity\RouteProviderTest::httpKernelHandle()
- 9 core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php \Drupal\KernelTests\Core\Entity\RouteProviderTest::httpKernelHandle()
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ RouteProviderTest.php, line 50
Class
- RouteProviderTest
- Tests route providers for entity types.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function httpKernelHandle($url) {
$request = Request::create($url);
/** @var \Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel */
$http_kernel = \Drupal::service('http_kernel');
return $http_kernel
->handle($request, HttpKernelInterface::SUB_REQUEST)
->getContent();
}