Fixing some broken model tests

This commit is contained in:
José Lorenzo Rodríguez 2010-12-21 23:51:47 -04:30
parent f3e2c0835f
commit 57929c2be7

View file

@ -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();