better detect if we need to init the filesystem for the hooks test

This commit is contained in:
Robin Appelman 2012-10-07 00:56:59 +02:00
parent 4cdfc72d58
commit 671c8b94b1
1 changed files with 1 additions and 1 deletions

View File

@ -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();