@@ 77-88 (lines=12) @@ | ||
74 | */ |
|
75 | abstract protected function createPersister(EntityManager $em, CollectionPersister $persister, Region $region, array $mapping); |
|
76 | ||
77 | protected function setUp() |
|
78 | { |
|
79 | $this->getSharedSecondLevelCacheDriverImpl()->flushAll(); |
|
80 | $this->enableSecondLevelCache(); |
|
81 | parent::setUp(); |
|
82 | ||
83 | $this->em = $this->_getTestEntityManager(); |
|
84 | $this->region = $this->createRegion(); |
|
85 | $this->collectionPersister = $this->getMockBuilder(CollectionPersister::class) |
|
86 | ->setMethods($this->collectionPersisterMockMethods) |
|
87 | ->getMock(); |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * @return \Doctrine\ORM\Cache\Region |
@@ 94-105 (lines=12) @@ | ||
91 | */ |
|
92 | abstract protected function createPersister(EntityManager $em, EntityPersister $persister, Region $region, ClassMetadata $metadata); |
|
93 | ||
94 | protected function setUp() |
|
95 | { |
|
96 | $this->getSharedSecondLevelCacheDriverImpl()->flushAll(); |
|
97 | $this->enableSecondLevelCache(); |
|
98 | parent::setUp(); |
|
99 | ||
100 | $this->em = $this->_getTestEntityManager(); |
|
101 | $this->region = $this->createRegion(); |
|
102 | $this->entityPersister = $this->getMockBuilder(EntityPersister::class) |
|
103 | ->setMethods($this->entityPersisterMockMethods) |
|
104 | ->getMock(); |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * @return \Doctrine\ORM\Cache\Region |