We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43b7e2f commit f3c7152Copy full SHA for f3c7152
tests/Feature/LockFeatureTest.php
@@ -8,6 +8,7 @@
8
use OCA\FilesLock\AppInfo\Application;
9
use OCA\FilesLock\Model\FileLock;
10
use OCA\FilesLock\Service\ConfigService;
11
+use OCA\FilesLock\Service\LockService;
12
use OCP\AppFramework\Utility\ITimeFactory;
13
use OCP\Files\File;
14
use OCP\Files\IRootFolder;
@@ -200,6 +201,8 @@ public function testLockUserExpire() {
200
201
}
202
203
$this->toTheFuture(3600);
204
+ $deprecated = \OCP\Server::get(LockService::class)->getDeprecatedLocks();
205
+ self::assertNotEmpty($deprecated);
206
$file->putContent('CCC');
207
self::assertEquals('CCC', $file->getContent());
208
0 commit comments