#1159 - verifying that Doctrine\ORM\Repository\DefaultRepositoryFactory
caches instantiated repositories locally
This commit is contained in:
parent
5adce9a1e3
commit
1e467fd23c
@ -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
|
* @private
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user