|
|
|
@ -218,7 +218,7 @@ class ValidatorTest extends TestCase
|
|
|
|
|
$m = $this->getTestModel(['attr_msg_val' => ['bcc']]); |
|
|
|
|
$val->addError($m, 'attr_msg_val', '{attribute}::{value}'); |
|
|
|
|
$errors = $m->getErrors('attr_msg_val'); |
|
|
|
|
$this->assertEquals('attr_msg_val::[)', $errors[0]); |
|
|
|
|
$this->assertEquals('attr_msg_val::array()', $errors[0]); |
|
|
|
|
$m = $this->getTestModel(['attr_msg_val' => 'abc']); |
|
|
|
|
$val->addError($m, 'attr_msg_val', '{attribute}::{value}::{param}', ['{param}' => 'param_value']); |
|
|
|
|
$errors = $m->getErrors('attr_msg_val'); |
|
|
|
|