From f25b0980295e53ffb373d7ce4cacf7b60d1e1c2c Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Mon, 19 Nov 2012 17:45:14 +0100 Subject: [PATCH] [DDC-2055] Add Test for EntityRepository#createResultSetMappingBuilder --- .../Tests/ORM/Functional/EntityRepositoryTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php b/tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php index 46f8201f3..5f1404dc6 100644 --- a/tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php @@ -706,5 +706,17 @@ class EntityRepositoryTest extends \Doctrine\Tests\OrmFunctionalTestCase $this->assertEquals(4, count($users)); } + + /** + * @group DDC-2055 + */ + public function testCreateResultSetMappingBuilder() + { + $repository = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser'); + $rsm = $repository->createResultSetMappingBuilder('u'); + + $this->assertInstanceOf('Doctrine\ORM\Query\ResultSetMappingBuilder', $rsm); + $this->assertEquals(array('u' => 'Doctrine\Tests\Models\CMS\CmsUser'), $rsm->aliasMap); + } }