You are here

protected function MongodbMenuTreeStorageTest::setUp in MongoDB 8

File

src/Tests/Menu/MongodbMenuTreeStorageTest.php, line 30
Contains \Drupal\mongodb\Tests\Menu\MenuTreeStorageTest.

Class

MongodbMenuTreeStorageTest
Tests the menu tree storage.

Namespace

Drupal\mongodb\Tests\Menu

Code

protected function setUp() {
  parent::setUp();
  $this->mongo = $this->container
    ->get('mongo');
  $this->treeStorage = new MongodbMenuTreeStorage($this->mongo, $this->container
    ->get('cache.menu'), 'menu_tree');
  $this
    ->installEntitySchema('menu_link_content');
}