You are here

protected function MenuLinkContentCacheabilityBubblingTest::setUp in Drupal 8

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

Overrides KernelTestBase::setUp

File

core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentCacheabilityBubblingTest.php, line 42

Class

MenuLinkContentCacheabilityBubblingTest
Ensures that rendered menu links bubble the necessary bubbleable metadata for outbound path/route processing.

Namespace

Drupal\Tests\menu_link_content\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->setUpCurrentUser([
    'uid' => 0,
  ]);
  $this
    ->installEntitySchema('menu_link_content');

  // Ensure that the weight of module_link_content is higher than system.
  // @see menu_link_content_install()
  module_set_weight('menu_link_content', 1);
}