Skip to content

Commit

Permalink
adjusted test for #47
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Apr 23, 2014
1 parent ab7a6e1 commit 0be88c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions EActiveRecordRelationBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit 0be88c2

Please sign in to comment.