From f0d2e8d150001a97c128c87e1f3bde8d70d02ee0 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 3 Apr 2015 15:28:13 +0100 Subject: [PATCH] Correcting static introspection issue in cache specific tests (`null` was being passed to a `PersistentCollection`) --- .../Cache/Persister/Entity/AbstractEntityPersisterTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php b/tests/Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php index f682723c1..bf94b1e46 100644 --- a/tests/Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php +++ b/tests/Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php @@ -11,6 +11,7 @@ use Doctrine\ORM\Persisters\Entity\EntityPersister; use Doctrine\Tests\Models\Cache\Country; use Doctrine\Common\Collections\Criteria; +use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Query\ResultSetMappingBuilder; use Doctrine\ORM\PersistentCollection; @@ -390,7 +391,7 @@ abstract class AbstractEntityPersisterTest extends OrmTestCase { $mapping = $this->em->getClassMetadata('Doctrine\Tests\Models\Cache\Country'); $assoc = array('type' => 1); - $coll = new PersistentCollection($this->em, $mapping, null); + $coll = new PersistentCollection($this->em, $mapping, new ArrayCollection()); $persister = $this->createPersisterDefault(); $entity = new Country("Foo"); @@ -406,7 +407,7 @@ abstract class AbstractEntityPersisterTest extends OrmTestCase { $mapping = $this->em->getClassMetadata('Doctrine\Tests\Models\Cache\Country'); $assoc = array('type' => 1); - $coll = new PersistentCollection($this->em, $mapping, null); + $coll = new PersistentCollection($this->em, $mapping, new ArrayCollection()); $persister = $this->createPersisterDefault(); $entity = new Country("Foo");