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