#1112 - adding test to verify that leading backslash is not relevant when fetching repositories
This commit is contained in:
parent
ae16afa428
commit
36bbd28b75
@ -627,6 +627,17 @@ class EntityRepositoryTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
$this->assertSame($repository, $this->_em->getRepository('AliasedAgain:CmsUser'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @group DDC-3257
|
||||
*/
|
||||
public function testCanRetrieveRepositoryFromClassNameWithLeadingBackslash()
|
||||
{
|
||||
$this->assertSame(
|
||||
$this->_em->getRepository('\\Doctrine\\Tests\\Models\\CMS\\CmsUser'),
|
||||
$this->_em->getRepository('Doctrine\\Tests\\Models\\CMS\\CmsUser')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @group DDC-1376
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user