/** * Test * * @return void */ public function testGetAvailableChilren() { $this->object->load(0); $this->assertInternalType('array', $this->object->getAvailableChildren()); }
/** * Retrieve children with his status is enable * * @return false | PropertyModel */ public function getAvailableChildren() { if ($this->getData('available_children') === null) { $children = new Collection(); $children->load($this->getId()); $this->setData('available_children', $children->getAvailableChildren()); } return $this->getData('available_children'); }