From 804372947ae5cdaeaa8c92250f4efb4ae54e8a3f Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Mon, 1 Oct 2012 14:07:34 +0200
Subject: [PATCH] fix test case for when a user is logged in

---
 tests/lib/filesystem.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/lib/filesystem.php b/tests/lib/filesystem.php
index 050dfa5280..4239033551 100644
--- a/tests/lib/filesystem.php
+++ b/tests/lib/filesystem.php
@@ -79,7 +79,10 @@ class Test_Filesystem extends UnitTestCase {
 
 		OC_Filesystem::mount('OC_Filestorage_Temporary', array(), '/');
 
-		OC_Filesystem::init('');
+		$rootView=new OC_FilesystemView('');
+		$rootView->mkdir('/'.$user);
+		$rootView->mkdir('/'.$user.'/files');
+
 		OC_Filesystem::file_put_contents('/foo', 'foo');
 		OC_Filesystem::mkdir('/bar');
 		OC_Filesystem::file_put_contents('/bar//foo', 'foo');
-- 
GitLab