예제 #1
0
 public function testHasOptionsWithOptions()
 {
     $this->assertFalse($this->_model->hasOptions());
     $this->_model->setData(['options' => 'some_option'], 'scope');
     $this->assertTrue($this->_model->hasOptions());
 }
예제 #2
0
 /**
  * {@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);
     }
 }