mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing some broken model tests
This commit is contained in:
parent
f3e2c0835f
commit
57929c2be7
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
|||
*/
|
||||
|
||||
require_once dirname(__FILE__) . DS . 'model.test.php';
|
||||
App::uses('DboSource', 'Model/Datasource/Database');
|
||||
App::uses('DboSource', 'Model/Datasource');
|
||||
|
||||
/**
|
||||
* DboMock class
|
||||
|
@ -2003,7 +2003,7 @@ class ModelIntegrationTest extends BaseModelTest {
|
|||
$expected = $db->name('Domain.DomainHandle');
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
ConnectionManager::create('mock', array('driver' => 'mock'));
|
||||
ConnectionManager::create('mock', array('datasource' => 'DboMock'));
|
||||
$TestModel->setDataSource('mock');
|
||||
$db = $TestModel->getDataSource();
|
||||
|
||||
|
|
Loading…
Reference in a new issue