Rename *CacheDriver to *Cache because they don't act as driver anymore
This commit is contained in:
20
tests/src/Core/Lock/ArrayCacheLockTest.php
Normal file
20
tests/src/Core/Lock/ArrayCacheLockTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Core\Lock;
|
||||
|
||||
use Friendica\Core\Cache\ArrayCache;
|
||||
use Friendica\Core\Lock\CacheLockDriver;
|
||||
|
||||
class ArrayCacheLockTest extends LockTest
|
||||
{
|
||||
protected function getInstance()
|
||||
{
|
||||
return new CacheLockDriver(new ArrayCache('localhost'));
|
||||
}
|
||||
|
||||
public function testLockTTL()
|
||||
{
|
||||
// ArrayCache doesn't support TTL
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user