|
@@ 128-136 (lines=9) @@
|
| 125 |
|
/** |
| 126 |
|
* @group DDC-1350 |
| 127 |
|
*/ |
| 128 |
|
public function testConfigureCache() |
| 129 |
|
{ |
| 130 |
|
$cache = new ArrayCache(); |
| 131 |
|
$config = Setup::createAnnotationMetadataConfiguration([], true, null, $cache); |
| 132 |
|
|
| 133 |
|
$this->assertSame($cache, $config->getResultCacheImpl()); |
| 134 |
|
$this->assertSame($cache, $config->getMetadataCacheImpl()); |
| 135 |
|
$this->assertSame($cache, $config->getQueryCacheImpl()); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
/** |
| 139 |
|
* @group DDC-3190 |
|
@@ 141-149 (lines=9) @@
|
| 138 |
|
/** |
| 139 |
|
* @group DDC-3190 |
| 140 |
|
*/ |
| 141 |
|
public function testConfigureCacheCustomInstance() |
| 142 |
|
{ |
| 143 |
|
$cache = $this->createMock(Cache::class); |
| 144 |
|
$config = Setup::createConfiguration(true, null, $cache); |
| 145 |
|
|
| 146 |
|
$this->assertSame($cache, $config->getResultCacheImpl()); |
| 147 |
|
$this->assertSame($cache, $config->getMetadataCacheImpl()); |
| 148 |
|
$this->assertSame($cache, $config->getQueryCacheImpl()); |
| 149 |
|
} |
| 150 |
|
} |
| 151 |
|
|