[DDC-2055] Add Test for EntityRepository#createResultSetMappingBuilder
This commit is contained in:
parent
941670aa9d
commit
f25b098029
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user