From: Philipp Holzer Date: Sat, 20 Apr 2019 12:20:31 +0000 (+0200) Subject: Fix redis cache lock driver test X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e062baadf81e2566b7503a904569de4c5e46e8b9;p=friendica.git Fix redis cache lock driver test --- diff --git a/tests/src/Core/Lock/RedisCacheLockDriverTest.php b/tests/src/Core/Lock/RedisCacheLockDriverTest.php index d21f3b6d86..21bace5018 100644 --- a/tests/src/Core/Lock/RedisCacheLockDriverTest.php +++ b/tests/src/Core/Lock/RedisCacheLockDriverTest.php @@ -3,8 +3,8 @@ namespace Friendica\Test\src\Core\Lock; -use Friendica\Factory\CacheDriverFactory; use Friendica\Core\Lock\CacheLockDriver; +use Friendica\Factory\CacheDriverFactory; /** * @requires extension redis @@ -23,6 +23,16 @@ class RedisCacheLockDriverTest extends LockTest ->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); + return new CacheLockDriver(CacheDriverFactory::create('redis')); } }