{
$tree =
new ilTree(ROOT_FOLDER_ID);
$d = $tree->getDepth(24);
$this->assertEquals(
$d,4);
$node = $tree->getNodeData(24);
$this->assertEquals($node['title'],'Public chat');
$bool = $tree->isInTree(24);
$this->assertEquals($bool,true);
$bool = $tree->isInTree(24242424);
$this->assertEquals($bool,false);
$node = $tree->getParentNodeData(24);
$this->assertEquals($node['title'],'Chat-Server');
$bool = $tree->isGrandChild(9,24);
$this->assertEquals($bool,1);
$node = $tree->getNodeDataByType('chac');
$this->assertEquals($node[0]['title'],'Chat-Server');
$bool = $tree->isDeleted(24);
$this->assertEquals($bool,false);
$id = $tree->getParentId(24);
$this->assertEquals($id,14);
$lft = $tree->getLeftValue(24);
$this->assertEquals($lft,14);
$seq = $tree->getChildSequenceNumber($tree->getNodeData(24));
$this->assertEquals($seq,1);
$tree->getNodePath(9,1);
$max_depth = $tree->getMaximumDepth();
$tree =
new ilTree(ROOT_FOLDER_ID);
$suc = $tree->fetchSuccessorNode(16);
$cals = $tree->fetchPredecessorNode($suc['child']);
$this->assertEquals($cals['child'],16);
}