summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/filesystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/filesystem.php b/tests/lib/filesystem.php
index ab5cbe717f2..a13b80cc5c1 100644
--- a/tests/lib/filesystem.php
+++ b/tests/lib/filesystem.php
@@ -73,7 +73,7 @@ class Test_Filesystem extends UnitTestCase {
}
public function testHooks() {
- if(OC_User::isLoggedIn()){
+ if(OC_Filesystem::getView()){
$user = OC_User::getUser();
}else{
$user=uniqid();