public function testGetAllOption()
 {
     $options = $this->_productType->getAllOption();
     $this->assertTrue(isset($options[0]['value']));
     $this->assertTrue(isset($options[0]['label']));
     // doesn't make sense to test other values, because the structure of resulting array is inconsistent
 }
 /**
  * {@inheritdoc}
  */
 public function getAllOption()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getAllOption');
     if (!$pluginInfo) {
         return parent::getAllOption();
     } else {
         return $this->___callPlugins('getAllOption', func_get_args(), $pluginInfo);
     }
 }
Exemple #3
0
 public function testGetAllOption()
 {
     $options = $this->getOptionArray();
     array_unshift($options, ['value' => '', 'label' => '']);
     $this->assertEquals($options, $this->_model->getAllOption());
 }