Example #1
0
 public function testRenderActiveNodesWhenNone()
 {
     $parent = new Node();
     $parent->addChild(new Node('child'));
     $view = $parent->renderActiveNodes(new NodeView());
     $this->assertCount(0, $view->children);
 }
 public function render()
 {
     $view = $this->tree->renderActiveNodes(new \PK\Navigation\NodeView());
     $this->template->breadcrumbs = $view->children;
     $this->template->setFile(__DIR__ . '/BreadcrumbControl.latte')->render();
 }