Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 30fd9fff145c9126c0d01cc2566b181aa9f4782c 1 parent 66b29e3
Juan Basso authored April 26, 2011
4  lib/Cake/Model/Datasource/Database/Mssql.php
@@ -17,6 +17,8 @@
17 17
  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
18 18
  */
19 19
 
  20
+App::uses('DboSource', 'Model/Datasource');
  21
+
20 22
 /**
21 23
  * MS SQL layer for DBO
22 24
  *
@@ -24,7 +26,7 @@
24 26
  *
25 27
  * @package       cake.libs.model.datasources.dbo
26 28
  */
27  
-class DboMssql extends DboSource {
  29
+class Mssql extends DboSource {
28 30
 
29 31
 /**
30 32
  * Driver description
18  lib/Cake/tests/Case/Model/Datasource/Database/MssqlTest.php
... ...
@@ -1,6 +1,6 @@
1 1
 <?php
2 2
 /**
3  
- * DboMssqlTest file
  3
+ * MssqlTest file
4 4
  *
5 5
  * PHP 5
6 6
  *
@@ -17,17 +17,15 @@
17 17
  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
18 18
  */
19 19
 
20  
-require_once LIBS.'model'.DS.'model.php';
21  
-require_once LIBS.'model'.DS.'datasources'.DS.'datasource.php';
22  
-require_once LIBS.'model'.DS.'datasources'.DS.'dbo_source.php';
23  
-require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_mssql.php';
  20
+App::uses('Model', 'Model');
  21
+App::uses('Mssql', 'Model/Datasource/Database');
24 22
 
25 23
 /**
26  
- * DboMssqlTestDb class
  24
+ * MssqlTestDb class
27 25
  *
28 26
  * @package       cake.tests.cases.libs.model.datasources.dbo
29 27
  */
30  
-class DboMssqlTestDb extends DboMssql {
  28
+class MssqlTestDb extends Mssql {
31 29
 
32 30
 /**
33 31
  * simulated property
@@ -261,11 +259,11 @@ class MssqlClientTestModel extends Model {
261 259
 	);
262 260
 }
263 261
 /**
264  
- * DboMssqlTest class
  262
+ * MssqlTest class
265 263
  *
266 264
  * @package       cake.tests.cases.libs.model.datasources.dbo
267 265
  */
268  
-class DboMssqlTest extends CakeTestCase {
  266
+class MssqlTest extends CakeTestCase {
269 267
 
270 268
 /**
271 269
  * The Dbo instance to be tested
@@ -322,7 +320,7 @@ public function end() {
322 320
  */
323 321
 	public function setUp() {
324 322
 		$db = ConnectionManager::getDataSource('test');
325  
-		$this->db = new DboMssqlTestDb($db->config);
  323
+		$this->db = new MssqlTestDb($db->config);
326 324
 		$this->model = new MssqlTestModel();
327 325
 	}
328 326
 

0 notes on commit 30fd9ff

Please sign in to comment.
Something went wrong with that request. Please try again.