1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Merge pull request #234 from FabioBatSilva/testJoinQueries

Fix QueryTest#testJoinQueries order
This commit is contained in:
Alexander 2011-12-20 11:25:04 -08:00
commit d3e697143f

View File

@ -87,7 +87,7 @@ class QueryTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->flush(); $this->_em->flush();
$this->_em->clear(); $this->_em->clear();
$query = $this->_em->createQuery("select u, a from Doctrine\Tests\Models\CMS\CmsUser u join u.articles a"); $query = $this->_em->createQuery("select u, a from Doctrine\Tests\Models\CMS\CmsUser u join u.articles a ORDER BY a.topic");
$users = $query->getResult(); $users = $query->getResult();
$this->assertEquals(1, count($users)); $this->assertEquals(1, count($users));
$this->assertInstanceOf('Doctrine\Tests\Models\CMS\CmsUser', $users[0]); $this->assertInstanceOf('Doctrine\Tests\Models\CMS\CmsUser', $users[0]);