protected function PathAliasMenuLinkContentTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_link_content/src/Tests/PathAliasMenuLinkContentTest.php \Drupal\menu_link_content\Tests\PathAliasMenuLinkContentTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ menu_link_content/ src/ Tests/ PathAliasMenuLinkContentTest.php, line 31 - Contains \Drupal\menu_link_content\Tests\PathAliasMenuLinkContentTest.
Class
- PathAliasMenuLinkContentTest
- Ensures that the menu tree adapts to path alias changes.
Namespace
Drupal\menu_link_content\TestsCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('menu_link_content');
$this
->installSchema('system', [
'url_alias',
'router',
]);
// Ensure that the weight of module_link_content is higher than system.
// @see menu_link_content_install()
module_set_weight('menu_link_content', 1);
}