Browse Source

Tests updated

tags/2.0.0-rc
Alexander Kochetov 11 years ago
parent
commit
795b7d75e7
  1. 4
      tests/unit/framework/validators/ExistValidatorTest.php

4
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()

Loading…
Cancel
Save