mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:48:03 +01:00
Fix redis cache lock driver test
This commit is contained in:
parent
b83e8683d8
commit
e062baadf8
1 changed files with 11 additions and 1 deletions
|
@ -3,8 +3,8 @@
|
|||
|
||||
namespace Friendica\Test\src\Core\Lock;
|
||||
|
||||
use Friendica\Factory\CacheDriverFactory;
|
||||
use Friendica\Core\Lock\CacheLockDriver;
|
||||
use Friendica\Factory\CacheDriverFactory;
|
||||
|
||||
/**
|
||||
* @requires extension redis
|
||||
|
@ -23,6 +23,16 @@ class RedisCacheLockDriverTest extends LockTest
|
|||
->with('system', 'redis_port')
|
||||
->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'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue