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

[DDC-2055] Add Test for EntityRepository#createResultSetMappingBuilder

This commit is contained in:
Benjamin Eberlei 2012-11-19 17:45:14 +01:00
parent 941670aa9d
commit f25b098029

View File

@ -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);
}
}