You are here

protected function MenuTreeStorageTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Menu/MenuTreeStorageTest.php \Drupal\system\Tests\Menu\MenuTreeStorageTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/system/src/Tests/Menu/MenuTreeStorageTest.php, line 48
Contains \Drupal\system\Tests\Menu\MenuTreeStorageTest.

Class

MenuTreeStorageTest
Tests the menu tree storage.

Namespace

Drupal\system\Tests\Menu

Code

protected function setUp() {
  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');
}