Tests updated

This commit is contained in:
Alexander Kochetov
2014-05-09 17:52:45 +04:00
parent fe5376ff7d
commit ba767206e8

View File

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