mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing test in DboSource test case
This commit is contained in:
parent
79c6428e49
commit
7870fb1ef2
1 changed files with 6 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue