CacheLockDriverTest Fixings

- Changing test behaviour
This commit is contained in:
Philipp Holzer 2018-09-05 22:16:23 +02:00
parent 01451f788f
commit f148dcabc4
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
6 changed files with 31 additions and 80 deletions

View file

@ -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()