]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/LockTest.php
Fix Locks
[friendica.git] / tests / src / Core / Lock / LockTest.php
index dd38172b38d0b0c7e4d225dd119cfd819998fc50..24efeaab869823d7f6fa2c5b7cf179798d936502 100644 (file)
@@ -190,4 +190,13 @@ abstract class LockTest extends MockedTest
                $this->assertFalse($this->instance->isLocked('foo'));
                $this->assertFalse($this->instance->isLocked('bar'));
        }
+
+       /**
+        * Test if releasing a non-existing lock doesn't throw errors
+        */
+       public function testReleaseLockWithoutLock()
+       {
+               $this->assertFalse($this->instance->isLocked('wrongLock'));
+               $this->assertFalse($this->instance->releaseLock('wrongLock'));
+       }
 }