You are here

protected function MenuTreeStorageTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php \Drupal\KernelTests\Core\Menu\MenuTreeStorageTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php, line 36

Class

MenuTreeStorageTest
Tests the menu tree storage.

Namespace

Drupal\KernelTests\Core\Menu

Code

protected function setUp() : void {
  parent::setUp();
  $this->treeStorage = new MenuTreeStorage($this->container
    ->get('database'), $this->container
    ->get('cache.menu'), $this->container
    ->get('cache_tags.invalidator'), 'menu_tree');
  $this->connection = $this->container
    ->get('database');
}