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