Skip to content

Commit

Permalink
Fixed XmlArticle and XmlUser Models associations. Fixes failing `test…
Browse files Browse the repository at this point in the history
…WithModel` test and does no longer try to use the 'default' datasource.
  • Loading branch information
boast committed May 23, 2012
1 parent 7fd1955 commit 81fedbb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/Cake/Test/Case/Utility/XmlTest.php
Expand Up @@ -39,8 +39,8 @@ class XmlArticle extends CakeTestModel {
* @var array * @var array
*/ */
public $belongsTo = array( public $belongsTo = array(
'XmlUser' => array( 'User' => array(
'className' => 'XmlArticle', 'className' => 'XmlUser',
'foreignKey' => 'user_id' 'foreignKey' => 'user_id'
) )
); );
Expand All @@ -65,7 +65,11 @@ class XmlUser extends CakeTestModel {
* *
* @var array * @var array
*/ */
public $hasMany = array('Article'); public $hasMany = array(
'Article' => array(
'className' => 'XmlArticle'
)
);
} }


/** /**
Expand Down

0 comments on commit 81fedbb

Please sign in to comment.