Replace Lock::release() with DI::lock()->release() and remove Core\Lock

This commit is contained in:
nupplaPhil 2020-01-07 00:24:10 +01:00
parent 634e657d23
commit 31457b8566
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
14 changed files with 33 additions and 74 deletions

View file

@ -55,7 +55,7 @@ class SemaphoreLockTest extends LockTest
touch($file);
$this->assertTrue(file_exists($file));
$this->assertFalse($this->instance->releaseLock('test', false));
$this->assertFalse($this->instance->release('test', false));
$this->assertTrue(file_exists($file));
}
@ -72,7 +72,7 @@ class SemaphoreLockTest extends LockTest
touch($file);
$this->assertTrue(file_exists($file));
$this->assertFalse($this->instance->releaseLock('test', true));
$this->assertFalse($this->instance->release('test', true));
$this->assertTrue(file_exists($file));
}
@ -87,6 +87,6 @@ class SemaphoreLockTest extends LockTest
$this->assertTrue(file_exists($file));
$this->assertTrue($this->instance->acquire('test'));
$this->assertTrue($this->instance->isLocked('test'));
$this->assertTrue($this->instance->releaseLock('test'));
$this->assertTrue($this->instance->release('test'));
}
}