]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/ArrayCacheLockDriverTest.php
Rename BlockedServers to ServerBlock
[friendica.git] / tests / src / Core / Lock / ArrayCacheLockDriverTest.php
index 0e58bf49e39c0b1b3a445dd51e596937d16c3f05..671341718b78168e5d15ffaadcd05d50747ed34d 100644 (file)
@@ -8,20 +8,14 @@ use Friendica\Core\Lock\CacheLockDriver;
 
 class ArrayCacheLockDriverTest extends LockTest
 {
-       /**
-        * @var \Friendica\Core\Cache\IMemoryCacheDriver
-        */
-       private $cache;
-
        protected function getInstance()
        {
-               $this->cache = new ArrayCache();
-               return new CacheLockDriver($this->cache);
+               return new CacheLockDriver(new ArrayCache());
        }
 
-       public function tearDown()
+       public function testLockTTL()
        {
-               $this->cache->clear();
-               parent::tearDown();
+               // ArrayCache doesn't support TTL
+               return true;
        }
 }