]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/RedisCacheLockDriverTest.php
Merge pull request #7018 from nupplaphil/feature/6245-Block_shell
[friendica.git] / tests / src / Core / Lock / RedisCacheLockDriverTest.php
index f5d0a648fba29a4bf415ac02e19b19726ee5d211..21bace501822e631010beb0c83f6878a958be6ec 100644 (file)
@@ -3,8 +3,8 @@
 
 namespace Friendica\Test\src\Core\Lock;
 
-use Friendica\Core\Cache\CacheDriverFactory;
 use Friendica\Core\Lock\CacheLockDriver;
+use Friendica\Factory\CacheDriverFactory;
 
 /**
  * @requires extension redis
@@ -13,14 +13,24 @@ class RedisCacheLockDriverTest extends LockTest
 {
        protected function getInstance()
        {
-               $this->configCache
+               $this->configMock
                        ->shouldReceive('get')
-                       ->with('system', 'redis_host', NULL, false)
+                       ->with('system', 'redis_host')
                        ->andReturn('localhost');
 
-               $this->configCache
+               $this->configMock
                        ->shouldReceive('get')
-                       ->with('system', 'redis_port', NULL, false)
+                       ->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'));