X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FDatabaseLockDriverTest.php;h=297e76d50b0fd25c70613fbe10aaefac1fef5a90;hb=f4ec7c47b921209b5ff7906bee8aba9db326d0cb;hp=3d641376995549a91e3c1664b8f41a3919dbc5c8;hpb=cf9a65cded8e8f270aedbb3ba46d5fe2fe351b4c;p=friendica.git diff --git a/tests/src/Core/Lock/DatabaseLockDriverTest.php b/tests/src/Core/Lock/DatabaseLockDriverTest.php index 3d64137699..297e76d50b 100644 --- a/tests/src/Core/Lock/DatabaseLockDriverTest.php +++ b/tests/src/Core/Lock/DatabaseLockDriverTest.php @@ -104,4 +104,15 @@ class DatabaseLockDriverTest extends LockTest parent::testReleaseAfterUnlock(); } + + public function testReleaseWitTTL() + { + $this->mockIsLocked('test', false, $this->startTime, 1); + $this->mockAcquireLock('test', 10, false, $this->pid, false, $this->startTime, 1); + $this->mockIsLocked('test', true, $this->startTime, 1); + $this->mockReleaseLock('test', $this->pid, 1); + $this->mockIsLocked('test', false, $this->startTime, 1); + + parent::testReleaseWitTTL(); + } }