Improve redis configuration

- basic authentication
- switch database (0 - 15)
This commit is contained in:
Philipp Holzer 2019-04-20 13:40:40 +02:00
parent 048501be34
commit fa71a9a0ce
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
3 changed files with 27 additions and 5 deletions

View file

@ -22,6 +22,16 @@ class RedisCacheDriverTest extends MemoryCacheTest
->with('system', 'redis_port')
->andReturn(null);
$this->configMock
->shouldReceive('get')
->with('system', 'redis_db')
->andReturn(3);
$this->configMock
->shouldReceive('get')
->with('system', 'redis_password')
->andReturn(null);
$this->cache = CacheDriverFactory::create('redis');
return $this->cache;
}