From 9bea612d7405c90ac979f41171b0257d2c49d31b Mon Sep 17 00:00:00 2001 From: John Brown Date: Thu, 6 Jun 2013 15:51:23 -0700 Subject: [PATCH] Adding simple test to ensure quoting of table names still functions. Note: the funtionality of this change won't be noticiable unless a custom quote strategy is implemented --- .../Tests/ORM/Query/SelectSqlGenerationTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php b/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php index 26a6a1ec1..1b2c58b8c 100644 --- a/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php +++ b/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php @@ -1831,6 +1831,17 @@ class SelectSqlGenerationTest extends \Doctrine\Tests\OrmTestCase ); } + /** + * @group DDC-1845 + */ + public function testQuotedTableDeclaration() + { + $this->assertSqlGeneration( + 'SELECT u FROM Doctrine\Tests\Models\Quote\User u', + 'SELECT q0_."user-id" AS userid0, q0_."user-name" AS username1 FROM "quote-user" q0_' + ); + } + /** * @group DDC-1845 */