Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function testVerifyStashDriver() |
||
22 | { |
||
23 | /** @var \Stash\Pool $pool */ |
||
24 | $pool = $this->getSetupFactory()->getServiceContainer()->get('ezpublish.cache_pool'); |
||
25 | |||
26 | if (getenv('CUSTOM_CACHE_POOL') === 'singleredis') { |
||
27 | $this->assertInstanceOf('\Stash\Driver\Redis', $pool->getDriver()); |
||
28 | } else { |
||
29 | $this->assertInstanceOf('\Stash\Driver\Ephemeral', $pool->getDriver()); |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 |