diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-07 00:56:59 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-07 00:56:59 +0200 |
commit | 671c8b94b1cdc14b2c71e51254bc589d5f32d263 (patch) | |
tree | 0b0cf708b3dfcf3a1830980d15b44c878bd9babb /tests | |
parent | 4cdfc72d58ff17cfc468b9474b7c480952ee7412 (diff) | |
download | nextcloud-server-671c8b94b1cdc14b2c71e51254bc589d5f32d263.tar.gz nextcloud-server-671c8b94b1cdc14b2c71e51254bc589d5f32d263.zip |
better detect if we need to init the filesystem for the hooks test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/filesystem.php | 2 |
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(); |