public function testHasSourceModel() { $this->assertFalse($this->_model->hasSourceModel()); $this->_model->setData(['source_model' => 'some_model'], 'scope'); $this->assertTrue($this->_model->hasSourceModel()); }
/** * {@inheritdoc} */ public function hasSourceModel() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'hasSourceModel'); if (!$pluginInfo) { return parent::hasSourceModel(); } else { return $this->___callPlugins('hasSourceModel', func_get_args(), $pluginInfo); } }