Fixed broken PostgreSQLQueryBuilderTest::testCommentColumn()

This commit is contained in:
SilverFire - Dmitry Naumenko
2016-04-20 09:49:01 +03:00
parent b08c82c5fe
commit b77d74b6d6

View File

@@ -102,11 +102,11 @@ class PostgreSQLQueryBuilderTest extends QueryBuilderTest
$expected = "COMMENT ON COLUMN [[comment]].[[text]] IS 'This is my column.'"; $expected = "COMMENT ON COLUMN [[comment]].[[text]] IS 'This is my column.'";
$sql = $qb->addCommentOnColumn('comment', 'text', 'This is my column.'); $sql = $qb->addCommentOnColumn('comment', 'text', 'This is my column.');
$this->assertEquals($expected, $sql); $this->assertEquals($this->replaceQuotes($expected), $sql);
$expected = "COMMENT ON COLUMN [[comment]].[[text]] IS NULL"; $expected = "COMMENT ON COLUMN [[comment]].[[text]] IS NULL";
$sql = $qb->dropCommentFromColumn('comment', 'text'); $sql = $qb->dropCommentFromColumn('comment', 'text');
$this->assertEquals($expected, $sql); $this->assertEquals($this->replaceQuotes($expected), $sql);
} }
public function testCommentTable() public function testCommentTable()
@@ -115,10 +115,10 @@ class PostgreSQLQueryBuilderTest extends QueryBuilderTest
$expected = "COMMENT ON TABLE [[comment]] IS 'This is my table.'"; $expected = "COMMENT ON TABLE [[comment]] IS 'This is my table.'";
$sql = $qb->addCommentOnTable('comment', 'This is my table.'); $sql = $qb->addCommentOnTable('comment', 'This is my table.');
$this->assertEquals($expected, $sql); $this->assertEquals($this->replaceQuotes($expected), $sql);
$expected = "COMMENT ON TABLE [[comment]] IS NULL"; $expected = "COMMENT ON TABLE [[comment]] IS NULL";
$sql = $qb->dropCommentFromTable('comment'); $sql = $qb->dropCommentFromTable('comment');
$this->assertEquals($expected, $sql); $this->assertEquals($this->replaceQuotes($expected), $sql);
} }
} }