/** * Returns the root node of the tree * * @return array */ public function getRoot() { $this->initDataProvider(); $node = $this->dataProvider->getRoot(); return $node->toArray(); }
/** * @test */ public function getRootNodeReturnsExpandedNode() { $this->assertTrue($this->fixture->getRoot()->isExpanded()); }