protected function MenuTreeStorageTest::setUp in Drupal 9
Same name and namespace in other branches
- 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\MenuCode
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');
}