Fix redis cache lock driver test
This commit is contained in:
parent
b83e8683d8
commit
e062baadf8
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
namespace Friendica\Test\src\Core\Lock;
|
namespace Friendica\Test\src\Core\Lock;
|
||||||
|
|
||||||
use Friendica\Factory\CacheDriverFactory;
|
|
||||||
use Friendica\Core\Lock\CacheLockDriver;
|
use Friendica\Core\Lock\CacheLockDriver;
|
||||||
|
use Friendica\Factory\CacheDriverFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires extension redis
|
* @requires extension redis
|
||||||
|
@ -23,6 +23,16 @@ class RedisCacheLockDriverTest extends LockTest
|
||||||
->with('system', 'redis_port')
|
->with('system', 'redis_port')
|
||||||
->andReturn(null);
|
->andReturn(null);
|
||||||
|
|
||||||
|
$this->configMock
|
||||||
|
->shouldReceive('get')
|
||||||
|
->with('system', 'redis_db')
|
||||||
|
->andReturn(3);
|
||||||
|
|
||||||
|
$this->configMock
|
||||||
|
->shouldReceive('get')
|
||||||
|
->with('system', 'redis_password')
|
||||||
|
->andReturn(null);
|
||||||
|
|
||||||
return new CacheLockDriver(CacheDriverFactory::create('redis'));
|
return new CacheLockDriver(CacheDriverFactory::create('redis'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue