Browse Source

typo fix

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
005c006b69
  1. 2
      tests/unit/framework/validators/ValidatorTest.php

2
tests/unit/framework/validators/ValidatorTest.php

@ -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');

Loading…
Cancel
Save