From bb6b75e7941d07c2d02471ff953f7f5ce28d9ca5 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 27 Nov 2013 23:07:15 -0500 Subject: [PATCH] fixed exception check in test. --- tests/unit/framework/validators/UniqueValidatorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}