From 671c8b94b1cdc14b2c71e51254bc589d5f32d263 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 7 Oct 2012 00:56:59 +0200 Subject: better detect if we need to init the filesystem for the hooks test --- tests/lib/filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3