From 1991430584fc7f41eb15833926f37864162075a6 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sat, 7 Jan 2012 02:17:27 -0430 Subject: [PATCH] Removing test that does not relate anymore to SqlServer datasource --- .../Datasource/Database/SqlserverTest.php | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php index 7838b46ff..95394bf62 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php @@ -600,43 +600,6 @@ class SqlserverTest extends CakeTestCase { $this->assertNull($result); } -/** - * testInsertMulti - * - * @return void - */ - public function testInsertMulti() { - $this->db->describe = $this->model->schema(); - - $fields = array('id', 'name', 'login'); - $values = array( - array(1, 'Larry', 'PhpNut'), - array(2, 'Renan', 'renan.saddam')); - $this->db->simulated = array(); - $this->db->insertMulti($this->model, $fields, $values); - $result = $this->db->simulated; - $expected = array( - 'SET IDENTITY_INSERT [sqlserver_test_models] ON', - "INSERT INTO [sqlserver_test_models] ([id], [name], [login]) VALUES (1, N'Larry', N'PhpNut')", - "INSERT INTO [sqlserver_test_models] ([id], [name], [login]) VALUES (2, N'Renan', N'renan.saddam')", - 'SET IDENTITY_INSERT [sqlserver_test_models] OFF' - ); - $this->assertEquals($expected, $result); - - $fields = array('name', 'login'); - $values = array( - array('Larry', 'PhpNut'), - array('Renan', 'renan.saddam')); - $this->db->simulated = array(); - $this->db->insertMulti($this->model, $fields, $values); - $result = $this->db->simulated; - $expected = array( - "INSERT INTO [sqlserver_test_models] ([name], [login]) VALUES (N'Larry', N'PhpNut')", - "INSERT INTO [sqlserver_test_models] ([name], [login]) VALUES (N'Renan', N'renan.saddam')", - ); - $this->assertEquals($expected, $result); - } - /** * SQL server < 11 doesn't have proper limit/offset support, test that our hack works. *