protected function AliasTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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 31
Class
- AliasTest
- Tests path alias CRUD and lookup functionality.
Namespace
Drupal\Tests\path_alias\KernelCode
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');
}