From e062baadf81e2566b7503a904569de4c5e46e8b9 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 20 Apr 2019 14:20:31 +0200 Subject: [PATCH] Fix redis cache lock driver test --- tests/src/Core/Lock/RedisCacheLockDriverTest.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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')); } } -- 2.39.5