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