]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/MemcacheCacheLockTest.php
Shorten "Configuration" to "Config" again, since the Wrapper is gone
[friendica.git] / tests / src / Core / Lock / MemcacheCacheLockTest.php
index 4e7dd30340f7acbca7d983657fb5ac4ea6fd9567..b7ef5d376d229e4db617af6aca4ab5b4632e40c1 100644 (file)
@@ -4,17 +4,18 @@
 namespace Friendica\Test\src\Core\Lock;
 
 use Friendica\Core\Cache\MemcacheCache;
-use Friendica\Core\Config\Configuration;
+use Friendica\Core\Config\IConfig;
 use Friendica\Core\Lock\CacheLock;
 
 /**
  * @requires extension Memcache
+ * @group MEMCACHE
  */
 class MemcacheCacheLockTest extends LockTest
 {
        protected function getInstance()
        {
-               $configMock = \Mockery::mock(Configuration::class);
+               $configMock = \Mockery::mock(IConfig::class);
 
                $host = $_SERVER['MEMCACHE_HOST'] ?? 'localhost';
 
@@ -38,4 +39,20 @@ class MemcacheCacheLockTest extends LockTest
 
                return $lock;
        }
+
+       /**
+        * @small
+        */
+       public function testGetLocks()
+       {
+               $this->markTestIncomplete('Race condition because of too fast getAllKeys() which uses a workaround');
+       }
+
+       /**
+        * @small
+        */
+       public function testGetLocksWithPrefix()
+       {
+               $this->markTestIncomplete('Race condition because of too fast getAllKeys() which uses a workaround');
+       }
 }