1
0
mirror of synced 2025-01-19 15:01:40 +03:00

#1112 - adding test to verify that leading backslash is not relevant when fetching repositories

This commit is contained in:
Marco Pivetta 2014-08-18 15:11:39 +02:00
parent ae16afa428
commit 36bbd28b75

View File

@ -627,6 +627,17 @@ class EntityRepositoryTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertSame($repository, $this->_em->getRepository('AliasedAgain:CmsUser')); $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 * @group DDC-1376
* *