diff --git a/lib/Cake/Test/Case/Model/ModelValidationTest.php b/lib/Cake/Test/Case/Model/ModelValidationTest.php index d54de7b02..a2fa22024 100644 --- a/lib/Cake/Test/Case/Model/ModelValidationTest.php +++ b/lib/Cake/Test/Case/Model/ModelValidationTest.php @@ -1972,7 +1972,7 @@ class ModelValidationTest extends BaseModelTest { array('body' => 'foo3') ); $user = new User(); - $user->hasMany['CustomArticle'] = array('foreignKey' => 'user_id'); + $user->bindModel(array('hasMany' => array('CustomArticle'))); $data = array( 'User' => array('user' => 'foo', 'password' => 'bar'), 'CustomArticle' => $articles