From 549c0bd90e77768c3ec779cd34b363152b7b90c7 Mon Sep 17 00:00:00 2001 From: chinpei215 Date: Sun, 28 Feb 2016 22:52:56 +0900 Subject: [PATCH] Using correct quotation marks. --- tests/TestCase/Database/Schema/MysqlSchemaTest.php | 8 ++++---- tests/TestCase/Database/Schema/PostgresSchemaTest.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/TestCase/Database/Schema/MysqlSchemaTest.php b/tests/TestCase/Database/Schema/MysqlSchemaTest.php index e18e50c7a33..f9aebbcaa0d 100644 --- a/tests/TestCase/Database/Schema/MysqlSchemaTest.php +++ b/tests/TestCase/Database/Schema/MysqlSchemaTest.php @@ -448,7 +448,7 @@ public static function columnSqlProvider() [ 'role', ['type' => 'string', 'length' => 10, 'null' => false, 'default' => 'admin'], - '`role` VARCHAR(10) NOT NULL DEFAULT "admin"' + '`role` VARCHAR(10) NOT NULL DEFAULT \'admin\'' ], [ 'title', @@ -544,7 +544,7 @@ public static function columnSqlProvider() [ 'created', ['type' => 'datetime', 'comment' => 'Created timestamp'], - '`created` DATETIME COMMENT "Created timestamp"' + '`created` DATETIME COMMENT \'Created timestamp\'' ], // Date & Time [ @@ -884,7 +884,7 @@ public function testCreateSql() $expected = <<expects($this->any()) ->method('quote') ->will($this->returnCallback(function ($value) { - return '"' . $value . '"'; + return '\'' . $value . '\''; })); $mock->expects($this->any()) ->method('quoteIdentifier') diff --git a/tests/TestCase/Database/Schema/PostgresSchemaTest.php b/tests/TestCase/Database/Schema/PostgresSchemaTest.php index 6938bde3aef..9ea70e34a26 100644 --- a/tests/TestCase/Database/Schema/PostgresSchemaTest.php +++ b/tests/TestCase/Database/Schema/PostgresSchemaTest.php @@ -615,7 +615,7 @@ public static function columnSqlProvider() [ 'role', ['type' => 'string', 'length' => 10, 'null' => false, 'default' => 'admin'], - '"role" VARCHAR(10) NOT NULL DEFAULT "admin"' + '"role" VARCHAR(10) NOT NULL DEFAULT \'admin\'' ], [ 'title', @@ -987,7 +987,7 @@ public function testCreateSql() $result[1] ); $this->assertEquals( - 'COMMENT ON COLUMN "schema_articles"."title" IS "This is the title"', + 'COMMENT ON COLUMN "schema_articles"."title" IS \'This is the title\'', $result[2] ); } @@ -1129,7 +1129,7 @@ protected function _getMockedDriver() $mock->expects($this->any()) ->method('quote') ->will($this->returnCallback(function ($value) { - return '"' . $value . '"'; + return '\'' . $value . '\''; })); $mock->expects($this->any()) ->method('quoteIdentifier')