Skip to content

Commit 0be88c2

Browse files
committed
adjusted test for #47
1 parent ab7a6e1 commit 0be88c2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

EActiveRecordRelationBehaviorTest.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,11 @@ public function testValidationBeforeSave()
615615
$this->assertTrue($model->validate());
616616
}
617617

618-
/**
619-
* @expectedException CDbException
620-
*/
621618
public function testValidationBeforeSaveFail()
622619
{
623620
$model = new Profile();
624621
$model->owner = new User();
625-
$this->assertTrue($model->validate());
622+
$this->assertFalse($model->validate());
626623
}
627624

628625
/**

0 commit comments

Comments
 (0)