diff --git a/EActiveRecordRelationBehaviorTest.php b/EActiveRecordRelationBehaviorTest.php index 61d6fce..18d52ff 100644 --- a/EActiveRecordRelationBehaviorTest.php +++ b/EActiveRecordRelationBehaviorTest.php @@ -615,14 +615,11 @@ public function testValidationBeforeSave() $this->assertTrue($model->validate()); } - /** - * @expectedException CDbException - */ public function testValidationBeforeSaveFail() { $model = new Profile(); $model->owner = new User(); - $this->assertTrue($model->validate()); + $this->assertFalse($model->validate()); } /**