Browse Source

Fixed test cases

Juan Basso 12 years ago
parent
commit
ecf1c35a5c

+ 4 - 4
Cake/Test/TestCase/Database/Driver/SqlserverTest.php

@@ -67,10 +67,10 @@ class SqlserverTest extends \Cake\TestSuite\TestCase {
 				$this->returnArgument(0)
 			));
 
-		$connection->expects($this->at(1))->method('exec')->with('Execute this');
-		$connection->expects($this->at(2))->method('exec')->with('this too');
-		$connection->expects($this->at(3))->method('exec')->with('SET config1 value1');
-		$connection->expects($this->at(4))->method('exec')->with('SET config2 value2');
+		$connection->expects($this->at(0))->method('exec')->with('Execute this');
+		$connection->expects($this->at(1))->method('exec')->with('this too');
+		$connection->expects($this->at(2))->method('exec')->with('SET config1 value1');
+		$connection->expects($this->at(3))->method('exec')->with('SET config2 value2');
 
 		$driver->connection($connection);
 		$driver->expects($this->once())->method('_connect')

+ 4 - 4
Cake/Test/TestCase/Database/Schema/SqlserverSchemaTest.php

@@ -147,7 +147,7 @@ SQL;
 	}
 
 /**
- * Test parsing Postgres column types from field description.
+ * Test parsing Sqlserver column types from field description.
  *
  * @dataProvider convertColumnProvider
  * @return void
@@ -175,7 +175,7 @@ SQL;
 	}
 
 /**
- * Test listing tables with Postgres
+ * Test listing tables with Sqlserver
  *
  * @return void
  */
@@ -192,7 +192,7 @@ SQL;
 	}
 
 /**
- * Test describing a table with Postgres
+ * Test describing a table with Sqlserver
  *
  * @return void
  */
@@ -633,7 +633,7 @@ SQL;
  * @return Driver
  */
 	protected function _getMockedDriver() {
-		$driver = new \Cake\Database\Driver\Postgres();
+		$driver = new \Cake\Database\Driver\Sqlserver();
 		$mock = $this->getMock('FakePdo', ['quote', 'quoteIdentifier']);
 		$mock->expects($this->any())
 			->method('quote')