function RouteProviderTest::httpKernelHandle

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php \Drupal\KernelTests\Core\Entity\RouteProviderTest::httpKernelHandle()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php \Drupal\KernelTests\Core\Entity\RouteProviderTest::httpKernelHandle()
  3. 10 core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php \Drupal\KernelTests\Core\Entity\RouteProviderTest::httpKernelHandle()
2 calls to RouteProviderTest::httpKernelHandle()
RouteProviderTest::testAdminHtmlRoutes in core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php
@covers \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getEditFormRoute @covers \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getDeleteFormRoute
RouteProviderTest::testHtmlRoutes in core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php
@covers \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider::getRoutes

File

core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php, line 56

Class

RouteProviderTest
Tests route providers for entity types.

Namespace

Drupal\KernelTests\Core\Entity

Code

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.