better detect if we need to init the filesystem for the hooks test
This commit is contained in:
parent
4cdfc72d58
commit
671c8b94b1
|
@ -73,7 +73,7 @@ class Test_Filesystem extends UnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testHooks() {
|
public function testHooks() {
|
||||||
if(OC_User::isLoggedIn()){
|
if(OC_Filesystem::getView()){
|
||||||
$user = OC_User::getUser();
|
$user = OC_User::getUser();
|
||||||
}else{
|
}else{
|
||||||
$user=uniqid();
|
$user=uniqid();
|
||||||
|
|
Loading…
Reference in New Issue