public function testHasChildren() { $this->_model->load(3); $this->assertTrue($this->_model->hasChildren()); $this->_model->load(5); $this->assertFalse($this->_model->hasChildren()); }
/** * {@inheritdoc} */ public function hasChildren() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'hasChildren'); if (!$pluginInfo) { return parent::hasChildren(); } else { return $this->___callPlugins('hasChildren', func_get_args(), $pluginInfo); } }