Example #1
0
 public function testToTreeBuildsWithDefaultOrderAndMultipleRootNodes()
 {
     $tree = Category::withoutRoot()->get()->toTree();
     $this->assertEquals(2, count($tree));
 }