Browse Source

Fixed failing test case

Tigran Gabrielyan 14 years ago
parent
commit
1367e5b927
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Test/Case/Model/ModelValidationTest.php

+ 1 - 1
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