/** * Prepare form item * * @param array &$item * @return void */ protected function _prepareFormItem(array &$item) { if ($item['type'] == 'select' && is_string($item['values'])) { $modelClass = $item['values']; $item['values'] = $this->_optionsInterpreter->evaluate(['model' => $modelClass]); } $item['class'] = isset($item['class']) ? $item['class'] . ' absolute-advice' : 'absolute-advice'; }
/** * @dataProvider evaluateWrongModelDataProvider */ public function testEvaluateWrongModel($input, $expectedException, $expectedExceptionMessage) { $this->setExpectedException($expectedException, $expectedExceptionMessage); $this->_model->evaluate($input); }