Ejemplo n.º 1
0
 /**
  * @param array $designException
  * @param string $regexp
  * @dataProvider saveExceptionDataProvider
  * @magentoDbIsolation enabled
  */
 public function testSaveException($designException, $regexp)
 {
     $this->_model->setValue(['1' => $designException]);
     $this->_model->save();
     $processedValue = unserialize($this->_model->getValue());
     $this->assertEquals($processedValue['1']['regexp'], $regexp);
 }
Ejemplo n.º 2
0
 public function testAfterLoad()
 {
     $this->model->setValue([['value' => 'value', 'search' => 'qwe', 'record_id' => 1]]);
     $this->model->afterLoad();
     $this->assertEquals([['value' => 'value', 'search' => 'qwe']], $this->model->getValue());
 }