Changed the import files and Mssql class name to the new structure.

This commit is contained in:
Juan Basso 2011-04-26 09:17:51 -04:00
parent 66b29e33e8
commit 30fd9fff14
2 changed files with 11 additions and 11 deletions
lib/Cake
Model/Datasource/Database
tests/Case/Model/Datasource/Database

View file

@ -17,6 +17,8 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
App::uses('DboSource', 'Model/Datasource');
/** /**
* MS SQL layer for DBO * MS SQL layer for DBO
* *
@ -24,7 +26,7 @@
* *
* @package cake.libs.model.datasources.dbo * @package cake.libs.model.datasources.dbo
*/ */
class DboMssql extends DboSource { class Mssql extends DboSource {
/** /**
* Driver description * Driver description

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* DboMssqlTest file * MssqlTest file
* *
* PHP 5 * PHP 5
* *
@ -17,17 +17,15 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
require_once LIBS.'model'.DS.'model.php'; App::uses('Model', 'Model');
require_once LIBS.'model'.DS.'datasources'.DS.'datasource.php'; App::uses('Mssql', 'Model/Datasource/Database');
require_once LIBS.'model'.DS.'datasources'.DS.'dbo_source.php';
require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_mssql.php';
/** /**
* DboMssqlTestDb class * MssqlTestDb class
* *
* @package cake.tests.cases.libs.model.datasources.dbo * @package cake.tests.cases.libs.model.datasources.dbo
*/ */
class DboMssqlTestDb extends DboMssql { class MssqlTestDb extends Mssql {
/** /**
* simulated property * simulated property
@ -261,11 +259,11 @@ class MssqlClientTestModel extends Model {
); );
} }
/** /**
* DboMssqlTest class * MssqlTest class
* *
* @package cake.tests.cases.libs.model.datasources.dbo * @package cake.tests.cases.libs.model.datasources.dbo
*/ */
class DboMssqlTest extends CakeTestCase { class MssqlTest extends CakeTestCase {
/** /**
* The Dbo instance to be tested * The Dbo instance to be tested
@ -322,7 +320,7 @@ class DboMssqlTest extends CakeTestCase {
*/ */
public function setUp() { public function setUp() {
$db = ConnectionManager::getDataSource('test'); $db = ConnectionManager::getDataSource('test');
$this->db = new DboMssqlTestDb($db->config); $this->db = new MssqlTestDb($db->config);
$this->model = new MssqlTestModel(); $this->model = new MssqlTestModel();
} }