From 7019c79b813f4ace0edb5e1bf763d677923f6bc2 Mon Sep 17 00:00:00 2001 From: ovidiupruteanu Date: Mon, 9 Sep 2013 17:14:09 +0300 Subject: [PATCH] Quoting test for null value and string column --- .../Test/Case/Model/Datasource/Database/SqlserverTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php index be0a98feb..bbc40a682 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php @@ -311,6 +311,10 @@ class SqlserverTest extends CakeTestCase { $expected = "''"; $result = $this->db->value('', 'binary'); $this->assertSame($expected, $result); + + $expected = 'NULL'; + $result = $this->db->value(null, 'string'); + $this->assertSame($expected, $result); } /**