aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-18 16:31:40 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-18 16:34:25 +0100
commit2166683e3b5810bfeca2540a038e212fb8ca75ed (patch)
tree9d85c0dbb7149e28680a528d794ec184b76b2f83 /tests
parent92560c5b86cb88920b6e439bdf4b90f1d59e9b6c (diff)
downloadnextcloud-server-2166683e3b5810bfeca2540a038e212fb8ca75ed.tar.gz
nextcloud-server-2166683e3b5810bfeca2540a038e212fb8ca75ed.zip
Allow setting the frequency of which the file watcher checks for updates
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/view.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index 72a2f854cb2..371d1ed1798 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -7,6 +7,8 @@
namespace Test\Files;
+use OC\Files\Cache\Watcher;
+
class TemporaryNoTouch extends \OC\Files\Storage\Temporary {
public function touch($path, $mtime = null) {
return false;
@@ -249,6 +251,7 @@ class View extends \PHPUnit_Framework_TestCase {
function testWatcher() {
$storage1 = $this->getTestStorage();
\OC\Files\Filesystem::mount($storage1, array(), '/');
+ $storage1->getWatcher()->setPolicy(Watcher::CHECK_ALWAYS);
$rootView = new \OC\Files\View('');