| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function testVerifyCacheDriver() |
||
| 25 | { |
||
| 26 | $pool = $this->getSetupFactory()->getServiceContainer()->get('ezpublish.cache_pool'); |
||
| 27 | |||
| 28 | $this->assertInstanceOf(TagAwareAdapter::class, $pool); |
||
| 29 | |||
| 30 | $reflectionPool = new \ReflectionProperty($pool, 'itemsAdapter'); |
||
| 31 | $reflectionPool->setAccessible(true); |
||
| 32 | $innerPool = $reflectionPool->getValue($pool); |
||
| 33 | |||
| 34 | if (getenv('CUSTOM_CACHE_POOL') === 'singleredis') { |
||
| 35 | $this->assertInstanceOf(RedisAdapter::class, $innerPool); |
||
| 36 | } else { |
||
| 37 | $this->assertInstanceOf(FilesystemAdapter::class, $innerPool); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |
||
| 41 |