]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/MemcachedCacheLockTest.php
Merge pull request #9183 from nupplaphil/Minor-deprecation
[friendica.git] / tests / src / Core / Lock / MemcachedCacheLockTest.php
index 232f78714fec18c3a0eee48a3e91f080b6892517..f41bf992055417c3f474b505fbbcc0a122506a2c 100644 (file)
@@ -37,11 +37,12 @@ class MemcachedCacheLockTest extends LockTest
                $configMock = \Mockery::mock(IConfig::class);
 
                $host = $_SERVER['MEMCACHED_HOST'] ?? 'localhost';
+               $port = $_SERVER['MEMCACHED_PORT'] ?? '11211';
 
                $configMock
                        ->shouldReceive('get')
                        ->with('system', 'memcached_hosts')
-                       ->andReturn([0 => $host . ', 11211']);
+                       ->andReturn([0 => $host . ', ' . $port]);
 
                $logger = new NullLogger();