function testGetChildren() { $tree = new TreeMock(); $children = $tree->getChildren(''); $this->assertEquals(1, count($children)); $this->assertEquals('hi', $children[0]->getName()); }
function testGetMultipleNodes2() { $tree = new TreeMock(); $result = $tree->getMultipleNodes(['multi/1', 'multi/2']); $this->assertArrayHasKey('multi/1', $result); $this->assertArrayHasKey('multi/2', $result); }