MenuTreeStorage example


  protected $connection;

  /** * {@inheritdoc} */
  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');
  }

  /** * Tests the tree storage when no tree was built yet. */
  public function testBasicMethods() {
    $this->doTestEmptyStorage();
    $this->doTestTable();
  }

  
Home | Imprint | This part of the site doesn't use cookies.