public function testGetTree() { $tree = Entity::getTree(); $this->assertCount(9, $tree); $ninth = $tree[8]; $this->assertArrayHasKey($this->childrenRelationIndex, $ninth->getRelations()); $tenth = $ninth->getChildren(); $this->assertCount(4, $tenth); }