From 0b80ec0bfd326cfd1af9d38297fd395cbbf0bcaa Mon Sep 17 00:00:00 2001 From: romanb Date: Fri, 22 Aug 2008 09:25:00 +0000 Subject: [PATCH] added a little test --- tests/Orm/Query/SelectSqlGenerationTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Orm/Query/SelectSqlGenerationTest.php b/tests/Orm/Query/SelectSqlGenerationTest.php index df63bbde1..bdd4892ae 100755 --- a/tests/Orm/Query/SelectSqlGenerationTest.php +++ b/tests/Orm/Query/SelectSqlGenerationTest.php @@ -171,9 +171,13 @@ class Orm_Query_SelectSqlGenerationTest extends Doctrine_OrmTestCase public function testPlainJoinWithoutClause() { $this->assertSqlGeneration( - 'SELECT u.id, a.id FROM CmsUser u LEFT JOIN u.articles a', + 'SELECT u.id, a.id from CmsUser u LEFT JOIN u.articles a', 'SELECT cu.id AS cu__id, ca.id AS ca__id FROM cms_user cu LEFT JOIN cms_article ca ON cu.id = ca.user_id WHERE 1 = 1' ); + $this->assertSqlGeneration( + 'SELECT u.id, a.id from CmsUser u JOIN u.articles a', + 'SELECT cu.id AS cu__id, ca.id AS ca__id FROM cms_user cu INNER JOIN cms_article ca ON cu.id = ca.user_id WHERE 1 = 1' + ); } } \ No newline at end of file