mirror of
https://github.com/friendica/friendica
synced 2025-04-29 21:44:23 +02:00
CacheLockDriverTest Fixings
- Changing test behaviour
This commit is contained in:
parent
01451f788f
commit
f148dcabc4
6 changed files with 31 additions and 80 deletions
|
@ -8,21 +8,9 @@ use Friendica\Core\Lock\CacheLockDriver;
|
|||
|
||||
class ArrayCacheLockDriverTest extends LockTest
|
||||
{
|
||||
/**
|
||||
* @var \Friendica\Core\Cache\IMemoryCacheDriver
|
||||
*/
|
||||
private $cache;
|
||||
|
||||
protected function getInstance()
|
||||
{
|
||||
$this->cache = new ArrayCache();
|
||||
return new CacheLockDriver($this->cache);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->cache->clear();
|
||||
parent::tearDown();
|
||||
return new CacheLockDriver(new ArrayCache());
|
||||
}
|
||||
|
||||
public function testLockTTL()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue