X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FRedisCacheLockTest.php;h=62b15bc7c73eef0cf616fb61ddb4e785ece9ebed;hb=bc5a1e5acee9ceb61cd08734c554f69850120d76;hp=95f7206e2c79d73367c2f12bd9b8da98c2b54462;hpb=1de3960e267a8d298348fbca18cf1be1f6a20f7a;p=friendica.git diff --git a/tests/src/Core/Lock/RedisCacheLockTest.php b/tests/src/Core/Lock/RedisCacheLockTest.php index 95f7206e2c..62b15bc7c7 100644 --- a/tests/src/Core/Lock/RedisCacheLockTest.php +++ b/tests/src/Core/Lock/RedisCacheLockTest.php @@ -1,10 +1,28 @@ . + * + */ namespace Friendica\Test\src\Core\Lock; use Friendica\Core\Cache\RedisCache; -use Friendica\Core\Config\Configuration; +use Friendica\Core\Config\IConfig; use Friendica\Core\Lock\CacheLock; /** @@ -15,9 +33,10 @@ class RedisCacheLockTest extends LockTest { protected function getInstance() { - $configMock = \Mockery::mock(Configuration::class); + $configMock = \Mockery::mock(IConfig::class); $host = $_SERVER['REDIS_HOST'] ?? 'localhost'; + $port = $_SERVER['REDIS_PORT'] ?? null; $configMock ->shouldReceive('get') @@ -26,7 +45,7 @@ class RedisCacheLockTest extends LockTest $configMock ->shouldReceive('get') ->with('system', 'redis_port') - ->andReturn(null); + ->andReturn($port); $configMock ->shouldReceive('get')