function MenuLinkTreeTest::setUp
Overrides KernelTestBase::setUp
File
- 
              core/
tests/ Drupal/ KernelTests/ Core/ Menu/ MenuLinkTreeTest.php, line 53  
Class
- MenuLinkTreeTest
 - Tests the menu link tree.
 
Namespace
Drupal\KernelTests\Core\MenuCode
protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('user');
  $this->installEntitySchema('menu_link_content');
  $this->linkTree = $this->container
    ->get('menu.link_tree');
  $this->menuLinkManager = $this->container
    ->get('plugin.manager.menu.link');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.