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'
);
} /**
* Tests the tree storage when no tree was built yet.
*/
public function testBasicMethods() { $this->
doTestEmptyStorage();
$this->
doTestTable();
} /**
* Ensures that there are no menu links by default.
*/
protected function doTestEmptyStorage() { $this->
assertEquals(0,
$this->treeStorage->
countMenuLinks());
} /**
* Ensures that table gets created on the fly.
*/