You are here

protected function RouteProviderTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php \Drupal\KernelTests\Core\Entity\RouteProviderTest::setUp()
  2. 8 core/modules/system/src/Tests/Routing/RouteProviderTest.php \Drupal\system\Tests\Routing\RouteProviderTest::setUp()
Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Routing/RouteProviderTest.php \Drupal\system\Tests\Routing\RouteProviderTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/system/src/Tests/Routing/RouteProviderTest.php, line 81
Contains \Drupal\system\Tests\Routing\RouteProviderTest.

Class

RouteProviderTest
Confirm that the default route provider is working correctly.

Namespace

Drupal\system\Tests\Routing

Code

protected function setUp() {
  parent::setUp();
  $this->fixtures = new RoutingFixtures();
  $this->state = new State(new KeyValueMemoryFactory());
  $this->currentPath = new CurrentPathStack(new RequestStack());
  $this->cache = new MemoryBackend('data');
  $this->pathProcessor = \Drupal::service('path_processor_manager');
  $this->cacheTagsInvalidator = \Drupal::service('cache_tags.invalidator');
  $this
    ->installSchema('system', 'url_alias');
}