summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-05 17:27:10 +0100
committerRobin Appelman <icewind@owncloud.com>2015-03-11 15:07:23 +0100
commite1f2a6df94af29864778a3ac286887ba51f19b04 (patch)
tree7f4efe6ded5eefdc37d992209969ab7a9eac1612 /tests/lib
parent7adda887865d43ea66e4854826cbb64f942af42c (diff)
downloadnextcloud-server-e1f2a6df94af29864778a3ac286887ba51f19b04.tar.gz
nextcloud-server-e1f2a6df94af29864778a3ac286887ba51f19b04.zip
Allow setting the watcher policy as mount option
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/files/view.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index 4ac014a92b5..475383b5fe0 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -985,4 +985,13 @@ class View extends \Test\TestCase {
$storage = $mount->getStorage();
$this->assertEquals($storage->getMountOption('foo'), 'bar');
}
+
+ public function testSetMountOptionsWatcherPolicy() {
+ $mount = new MountPoint('\OC\Files\Storage\Temporary', '/asd/', [[]], Filesystem::getLoader(), ['filesystem_check_changes' => Watcher::CHECK_NEVER]);
+ Filesystem::getMountManager()->addMount($mount);
+ /** @var \OC\Files\Storage\Common $storage */
+ $storage = $mount->getStorage();
+ $watcher = $storage->getWatcher();
+ $this->assertEquals(Watcher::CHECK_NEVER, $watcher->getPolicy());
+ }
}