diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-01 14:07:34 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-01 14:07:34 +0200 |
commit | 804372947ae5cdaeaa8c92250f4efb4ae54e8a3f (patch) | |
tree | f9b8e0d45bdd504b9ba64a90b19e361bb63ea3b3 /tests | |
parent | f77dc9b30fd1720ed3cc84c52fe0ba1b1c186e8c (diff) | |
download | nextcloud-server-804372947ae5cdaeaa8c92250f4efb4ae54e8a3f.tar.gz nextcloud-server-804372947ae5cdaeaa8c92250f4efb4ae54e8a3f.zip |
fix test case for when a user is logged in
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/filesystem.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/filesystem.php b/tests/lib/filesystem.php index 050dfa5280d..4239033551d 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'); |