Ejemplo n.º 1
0
 /**
  * Returns array to be used in multiselect on back-end
  *
  * @return array
  */
 public function toOptionArray()
 {
     $configData = $this->_shippingFedex->getCode($this->_code);
     $arr = [];
     foreach ($configData as $code => $title) {
         $arr[] = ['value' => $code, 'label' => $title];
     }
     return $arr;
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider getCodeUnitOfMeasureDataProvider
  * @param string $code
  */
 public function testGetCodeUnitOfMeasure($code)
 {
     $result = $this->_model->getCode('unit_of_measure', $code);
     $this->assertNotEmpty($result);
 }