public function getChildren() { if ($this->getData('children') === null) { $children = new Collection(); $children->load($this->getId()); $this->setData('children', $children->getChildren()); } return $this->getData('children'); }
/** * Test * * @return void */ public function testGetChildren() { $this->assertInternalType('array', $this->object->getChildren()); }