You are here

protected function AliasTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/path_alias/tests/src/Kernel/AliasTest.php \Drupal\Tests\path_alias\Kernel\AliasTest::setUp()
  2. 9 core/modules/path_alias/tests/src/Kernel/AliasTest.php \Drupal\Tests\path_alias\Kernel\AliasTest::setUp()

File

core/modules/path_alias/tests/src/Kernel/AliasTest.php, line 31

Class

AliasTest
Tests path alias CRUD and lookup functionality.

Namespace

Drupal\Tests\path_alias\Kernel

Code

protected function setUp() : void {
  parent::setUp();

  // The alias whitelist expects that the menu path roots are set by a
  // menu router rebuild.
  \Drupal::state()
    ->set('router.path_roots', [
    'user',
    'admin',
  ]);
  $this
    ->installEntitySchema('path_alias');
}