Commit ba767206 by Alexander Kochetov

Tests updated

parent fe5376ff
......@@ -92,7 +92,7 @@ class ExistValidatorTest extends DatabaseTestCase
// check array
$val = new ExistValidator(['targetAttribute' => 'ref']);
$m = ValidatorTestRefModel::findOne(['id' => 2]);
$m->test_val = [1,2,3];
$m->test_val = [1, 2, 3, 4, 5, 6];
$val->validateAttribute($m, 'test_val');
$this->assertTrue($m->hasErrors('test_val'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment