1
0
mirror of synced 2025-03-23 08:23:51 +03:00

#1159 - verifying that Doctrine\ORM\Repository\DefaultRepositoryFactory caches instantiated repositories locally

This commit is contained in:
Marco Pivetta 2014-10-14 01:32:04 +02:00
parent 5adce9a1e3
commit 1e467fd23c

View File

@ -64,6 +64,14 @@ class DefaultRepositoryFactoryTest extends PHPUnit_Framework_TestCase
);
}
public function testCreatedRepositoriesAreCached()
{
$this->assertSame(
$this->repositoryFactory->getRepository($this->entityManager, __CLASS__),
$this->repositoryFactory->getRepository($this->entityManager, __CLASS__)
);
}
/**
* @private
*