diff --git a/tests/unit/framework/validators/ExistValidatorTest.php b/tests/unit/framework/validators/ExistValidatorTest.php index 6d8644d..0d38f2b 100644 --- a/tests/unit/framework/validators/ExistValidatorTest.php +++ b/tests/unit/framework/validators/ExistValidatorTest.php @@ -92,9 +92,9 @@ class ExistValidatorTest extends DatabaseTestCase // check array $val = new ExistValidator(['targetAttribute' => 'ref']); $m = ValidatorTestRefModel::findOne(['id' => 2]); - $m->test_val = [1, 2, 3, 4, 5, 6]; + $m->test_val = [1, 2, 3]; $val->validateAttribute($m, 'test_val'); - $this->assertTrue($m->hasErrors('test_val')); + $this->assertFalse($m->hasErrors('test_val')); } public function testValidateCompositeKeys()