Commit a8068dfe by Qiang Xue

fixed test break.

parent 8496b217
...@@ -32,7 +32,7 @@ class ExistValidatorTest extends DatabaseTestCase ...@@ -32,7 +32,7 @@ class ExistValidatorTest extends DatabaseTestCase
$this->fail('Exception should have been thrown at this time'); $this->fail('Exception should have been thrown at this time');
} catch (Exception $e) { } catch (Exception $e) {
$this->assertInstanceOf('yii\base\InvalidConfigException', $e); $this->assertInstanceOf('yii\base\InvalidConfigException', $e);
$this->assertEquals('The "className" property must be set.', $e->getMessage()); $this->assertEquals('The "targetClass" property must be set.', $e->getMessage());
} }
// combine to save the time creating a new db-fixture set (likely ~5 sec) // combine to save the time creating a new db-fixture set (likely ~5 sec)
try { try {
...@@ -41,7 +41,7 @@ class ExistValidatorTest extends DatabaseTestCase ...@@ -41,7 +41,7 @@ class ExistValidatorTest extends DatabaseTestCase
$this->fail('Exception should have been thrown at this time'); $this->fail('Exception should have been thrown at this time');
} catch (Exception $e) { } catch (Exception $e) {
$this->assertInstanceOf('yii\base\InvalidConfigException', $e); $this->assertInstanceOf('yii\base\InvalidConfigException', $e);
$this->assertEquals('The "attributeName" property must be configured as a string.', $e->getMessage()); $this->assertEquals('The "targetAttribute" property must be configured as a string.', $e->getMessage());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment