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