Exemplo n.º 1
0
 /**
  * @param string|array $value
  * @param string $result
  * @dataProvider makeStorableArrayFieldValueDataProvider
  */
 public function testMakeStorableArrayFieldValue($value, $result)
 {
     $this->assertSame($result, $this->minsaleqty->makeStorableArrayFieldValue($value));
 }
Exemplo n.º 2
0
 /**
  * Prepare data before save
  *
  * @return void
  */
 public function beforeSave()
 {
     $value = $this->getValue();
     $value = $this->_catalogInventoryMinsaleqty->makeStorableArrayFieldValue($value);
     $this->setValue($value);
 }