Fixed failing test case

This commit is contained in:
Tigran Gabrielyan 2012-05-30 15:26:59 -07:00
parent acbb2bebc9
commit 1367e5b927

View file

@ -1972,7 +1972,7 @@ class ModelValidationTest extends BaseModelTest {
array('body' => 'foo3') array('body' => 'foo3')
); );
$user = new User(); $user = new User();
$user->hasMany['CustomArticle'] = array('foreignKey' => 'user_id'); $user->bindModel(array('hasMany' => array('CustomArticle')));
$data = array( $data = array(
'User' => array('user' => 'foo', 'password' => 'bar'), 'User' => array('user' => 'foo', 'password' => 'bar'),
'CustomArticle' => $articles 'CustomArticle' => $articles