1
1
Fork 0

Fix redis cache lock driver test

This commit is contained in:
Philipp Holzer 2019-04-20 14:20:31 +02:00
parent b83e8683d8
commit e062baadf8
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -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'));
}
}