public function actionDefault() { $tree = $this->service->fetchTree(); if ($tree === null) { $this->redirect("createRootNode"); } $this->template->title = "Menu"; }
/** * @depends testUpdateNode */ public function testDeleteNode(MenuItem $node) { $this->object->deleteNode($node); $tree = $this->object->fetchTree(); $this->assertSame(array(), $tree->getChildren()); }