diff --git a/tests/unit/framework/validators/UniqueValidatorTest.php b/tests/unit/framework/validators/UniqueValidatorTest.php index d0a7091..707239c 100644 --- a/tests/unit/framework/validators/UniqueValidatorTest.php +++ b/tests/unit/framework/validators/UniqueValidatorTest.php @@ -80,9 +80,9 @@ class UniqueValidatorTest extends DatabaseTestCase public function testValidateAttributeAttributeNotInTableException() { - $this->setExpectedException('yii\base\InvalidConfigException'); + $this->setExpectedException('yii\db\Exception'); $val = new UniqueValidator(); $m = new ValidatorTestMainModel(); $val->validateAttribute($m, 'testMainVal'); } -} \ No newline at end of file +}