|
@@ 69-75 (lines=7) @@
|
| 66 |
|
self::assertInstanceOf(AnnotationNamespace\PrePersist::class, $annotation); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
public function testSetGetQueryCacheImpl() |
| 70 |
|
{ |
| 71 |
|
self::assertNull($this->configuration->getQueryCacheImpl()); // defaults |
| 72 |
|
$queryCacheImpl = $this->createMock(Cache::class); |
| 73 |
|
$this->configuration->setQueryCacheImpl($queryCacheImpl); |
| 74 |
|
self::assertSame($queryCacheImpl, $this->configuration->getQueryCacheImpl()); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
public function testSetGetHydrationCacheImpl() |
| 78 |
|
{ |
|
@@ 77-83 (lines=7) @@
|
| 74 |
|
self::assertSame($queryCacheImpl, $this->configuration->getQueryCacheImpl()); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
public function testSetGetHydrationCacheImpl() |
| 78 |
|
{ |
| 79 |
|
self::assertNull($this->configuration->getHydrationCacheImpl()); // defaults |
| 80 |
|
$queryCacheImpl = $this->createMock(Cache::class); |
| 81 |
|
$this->configuration->setHydrationCacheImpl($queryCacheImpl); |
| 82 |
|
self::assertSame($queryCacheImpl, $this->configuration->getHydrationCacheImpl()); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
public function testSetGetMetadataCacheImpl() |
| 86 |
|
{ |
|
@@ 85-91 (lines=7) @@
|
| 82 |
|
self::assertSame($queryCacheImpl, $this->configuration->getHydrationCacheImpl()); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
public function testSetGetMetadataCacheImpl() |
| 86 |
|
{ |
| 87 |
|
self::assertNull($this->configuration->getMetadataCacheImpl()); // defaults |
| 88 |
|
$queryCacheImpl = $this->createMock(Cache::class); |
| 89 |
|
$this->configuration->setMetadataCacheImpl($queryCacheImpl); |
| 90 |
|
self::assertSame($queryCacheImpl, $this->configuration->getMetadataCacheImpl()); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
public function testAddGetNamedQuery() |
| 94 |
|
{ |