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