public function testIsLeaf() { $this->assertFalse($this->object->isLeaf(1), 'Root node is not a leaf'); $this->assertFalse($this->object->isLeaf(23), 'Templates node is not a leaf'); $this->assertFalse($this->object->isLeaf(-1), 'Invalid node is not a leaf'); $this->assertTrue($this->object->isLeaf(25), 'Plugins is a leaf'); }