]> git.mxchange.org Git - friendica.git/commitdiff
Fix redis cache lock driver test
authorPhilipp Holzer <admin@philipp.info>
Sat, 20 Apr 2019 12:20:31 +0000 (14:20 +0200)
committerPhilipp Holzer <admin@philipp.info>
Sat, 20 Apr 2019 12:20:31 +0000 (14:20 +0200)
tests/src/Core/Lock/RedisCacheLockDriverTest.php

index d21f3b6d8621dd1d9134780f7bf928d9a2f5b450..21bace501822e631010beb0c83f6878a958be6ec 100644 (file)
@@ -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'));
        }
 }