From 81fedbba9c21f0b73b42b4d6f1455dd62231fcf4 Mon Sep 17 00:00:00 2001 From: David Thalmann Date: Wed, 23 May 2012 07:19:06 +0300 Subject: [PATCH] Fixed XmlArticle and XmlUser Models associations. Fixes failing `testWithModel` test and does no longer try to use the 'default' datasource. --- lib/Cake/Test/Case/Utility/XmlTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/XmlTest.php b/lib/Cake/Test/Case/Utility/XmlTest.php index d1bf8d1b2..fe86de950 100644 --- a/lib/Cake/Test/Case/Utility/XmlTest.php +++ b/lib/Cake/Test/Case/Utility/XmlTest.php @@ -39,8 +39,8 @@ class XmlArticle extends CakeTestModel { * @var array */ public $belongsTo = array( - 'XmlUser' => array( - 'className' => 'XmlArticle', + 'User' => array( + 'className' => 'XmlUser', 'foreignKey' => 'user_id' ) ); @@ -65,7 +65,11 @@ class XmlUser extends CakeTestModel { * * @var array */ - public $hasMany = array('Article'); + public $hasMany = array( + 'Article' => array( + 'className' => 'XmlArticle' + ) + ); } /**