You are here

protected function ModuleConfigureRouteTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php \Drupal\KernelTests\Core\Extension\ModuleConfigureRouteTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php, line 38

Class

ModuleConfigureRouteTest
Tests the configure route for core modules.

Namespace

Drupal\KernelTests\Core\Extension

Code

protected function setUp() : void {
  parent::setUp();
  $this->routeProvider = \Drupal::service('router.route_provider');
  $this->moduleInfo = \Drupal::service('extension.list.module')
    ->getList();
}