/** * @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); }
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()); }