function AliasTest::setUp
Same name in other branches
- 9 core/modules/path_alias/tests/src/Kernel/AliasTest.php \Drupal\Tests\path_alias\Kernel\AliasTest::setUp()
- 8.9.x core/modules/path_alias/tests/src/Kernel/AliasTest.php \Drupal\Tests\path_alias\Kernel\AliasTest::setUp()
- 10 core/modules/path_alias/tests/src/Kernel/AliasTest.php \Drupal\Tests\path_alias\Kernel\AliasTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ path_alias/ tests/ src/ Kernel/ AliasTest.php, line 34
Class
- AliasTest
- Tests path alias CRUD and lookup functionality.
Namespace
Drupal\Tests\path_alias\KernelCode
protected function setUp() : void {
parent::setUp();
// The alias prefix list 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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.