Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed failing test case

  • Loading branch information...
commit 1367e5b92733cc33ec83a97ac0bfab64f52a9ea7 1 parent acbb2be
@tigrang tigrang authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Test/Case/Model/ModelValidationTest.php
View
2  lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -1972,7 +1972,7 @@ public function testValidateFirstAssociatedWithBeforeValidate() {
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
Please sign in to comment.
Something went wrong with that request. Please try again.