From 7870fb1ef2b6f3d22ec45675c40f3cf17e744eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Lorenzo=20Rodri=CC=81guez?= Date: Wed, 22 Dec 2010 00:11:40 -0430 Subject: [PATCH] Fixing test in DboSource test case --- .../tests/cases/libs/model/datasources/dbo_source.test.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Cake/tests/cases/libs/model/datasources/dbo_source.test.php b/lib/Cake/tests/cases/libs/model/datasources/dbo_source.test.php index a7dd2c203..577529783 100644 --- a/lib/Cake/tests/cases/libs/model/datasources/dbo_source.test.php +++ b/lib/Cake/tests/cases/libs/model/datasources/dbo_source.test.php @@ -20,9 +20,14 @@ App::uses('Model', 'Model'); App::uses('AppModel', 'Model'); +App::uses('DataSource', 'Model/Datasource'); App::uses('DboSource', 'Model/Datasource'); require_once dirname(dirname(__FILE__)) . DS . 'models.php'; +class MockDataSource extends DataSource { + +} + /** * DboSourceTest class * @@ -783,7 +788,7 @@ class DboSourceTest extends CakeTestCase { function testReadOnlyCallingQueryAssociationWhenDefined() { $this->loadFixtures('Article', 'User', 'ArticlesTag', 'Tag'); ConnectionManager::create('test_no_queryAssociation', array( - 'datasource' => 'data' + 'datasource' => 'MockDataSource' )); $Article = ClassRegistry::init('Article'); $Article->Comment->useDbConfig = 'test_no_queryAssociation';