Skip to content
Permalink
Browse files

Using correct quotation marks.

  • Loading branch information...
chinpei215 committed Feb 28, 2016
1 parent 94e84db commit 549c0bd90e77768c3ec779cd34b363152b7b90c7
@@ -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 = <<<SQL
CREATE TABLE `posts` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`title` VARCHAR(255) NOT NULL COMMENT "The title",
`title` VARCHAR(255) NOT NULL COMMENT 'The title',
`body` TEXT,
`created` DATETIME,
PRIMARY KEY (`id`)
@@ -1040,7 +1040,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')
@@ -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')

0 comments on commit 549c0bd

Please sign in to comment.
You can’t perform that action at this time.