protected function MenuLinkContentCacheabilityBubblingTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_link_content/src/Tests/MenuLinkContentCacheabilityBubblingTest.php \Drupal\menu_link_content\Tests\MenuLinkContentCacheabilityBubblingTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ menu_link_content/ src/ Tests/ MenuLinkContentCacheabilityBubblingTest.php, line 37 - Contains \Drupal\menu_link_content\Tests\MenuLinkContentCacheabilityBubblingTest.
Class
- MenuLinkContentCacheabilityBubblingTest
- Ensures that rendered menu links bubble the necessary bubbleable metadata for outbound path/route processing.
Namespace
Drupal\menu_link_content\TestsCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('menu_link_content');
$this
->installEntitySchema('user');
$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);
}