Rename *CacheDriver to *Cache because they don't act as driver anymore
This commit is contained in:
29
tests/src/Core/Lock/MemcachedCacheLockTest.php
Normal file
29
tests/src/Core/Lock/MemcachedCacheLockTest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Friendica\Test\src\Core\Lock;
|
||||
|
||||
use Friendica\Core\Cache\MemcachedCache;
|
||||
use Friendica\Core\Config\Configuration;
|
||||
use Friendica\Core\Lock\CacheLockDriver;
|
||||
use Psr\Log\NullLogger;
|
||||
|
||||
/**
|
||||
* @requires extension memcached
|
||||
*/
|
||||
class MemcachedCacheLockTest extends LockTest
|
||||
{
|
||||
protected function getInstance()
|
||||
{
|
||||
$configMock = \Mockery::mock(Configuration::class);
|
||||
|
||||
$configMock
|
||||
->shouldReceive('get')
|
||||
->with('system', 'memcached_hosts')
|
||||
->andReturn([0 => 'localhost, 11211']);
|
||||
|
||||
$logger = new NullLogger();
|
||||
|
||||
return new CacheLockDriver(new MemcachedCache('localhost', $configMock, $logger));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user