Skip to content
Snippets Groups Projects
Commit 193a0b1a authored by Björn Schießle's avatar Björn Schießle
Browse files

fix broken unit tests

parent c25915cd
No related branches found
No related tags found
No related merge requests found
...@@ -52,9 +52,11 @@ class Test_Files_Sharing_Storage extends Test_Files_Sharing_Base { ...@@ -52,9 +52,11 @@ class Test_Files_Sharing_Storage extends Test_Files_Sharing_Base {
} }
/** /**
* if the parent of the mount point is gone then the mount point should move up
*
* @medium * @medium
*/ */
function testDeleteParentOfMountPoint() { function testParentOfMountPointIsGone() {
// share to user // share to user
$fileinfo = $this->view->getFileInfo($this->folder); $fileinfo = $this->view->getFileInfo($this->folder);
...@@ -79,8 +81,8 @@ class Test_Files_Sharing_Storage extends Test_Files_Sharing_Base { ...@@ -79,8 +81,8 @@ class Test_Files_Sharing_Storage extends Test_Files_Sharing_Base {
$this->assertFalse($user2View->is_dir($this->folder)); $this->assertFalse($user2View->is_dir($this->folder));
// delete the local folder // delete the local folder
$result = $user2View->unlink('/localfolder'); $fullPath = \OC_Config::getValue('datadirectory') . '/' . self::TEST_FILES_SHARING_API_USER2 . '/files/localfolder';
$this->assertTrue($result); rmdir($fullPath);
//enforce reload of the mount points //enforce reload of the mount points
self::loginHelper(self::TEST_FILES_SHARING_API_USER2); self::loginHelper(self::TEST_FILES_SHARING_API_USER2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment