diff options
Diffstat (limited to 'apps/files_sharing/tests/locking.php')
-rw-r--r-- | apps/files_sharing/tests/locking.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/locking.php b/apps/files_sharing/tests/locking.php index 46afbf294be..6d13fc1cda5 100644 --- a/apps/files_sharing/tests/locking.php +++ b/apps/files_sharing/tests/locking.php @@ -87,4 +87,15 @@ class Locking extends TestCase { $this->assertTrue(Filesystem::rename('/foo', '/asd')); } + + public function testChangeLock() { + + Filesystem::initMountPoints($this->recipientUid); + $recipientView = new View('/' . $this->recipientUid . '/files'); + $recipientView->lockFile('bar.txt', ILockingProvider::LOCK_SHARED); + $recipientView->changeLock('bar.txt', ILockingProvider::LOCK_EXCLUSIVE); + $recipientView->unlockFile('bar.txt', ILockingProvider::LOCK_EXCLUSIVE); + + $this->assertTrue(true); + } } |