diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-08-14 17:21:52 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-08-19 10:21:37 +0200 |
commit | 23f4e7c1cb45cc75f4a1dcdcba28d8ef2713cda6 (patch) | |
tree | 33a3b037c3362df44773f0afd9d850be9e56a675 | |
parent | 29e9cb51dc00f7c27a7b4b7702b03f456dcd258a (diff) | |
download | nextcloud-server-23f4e7c1cb45cc75f4a1dcdcba28d8ef2713cda6.tar.gz nextcloud-server-23f4e7c1cb45cc75f4a1dcdcba28d8ef2713cda6.zip |
fix broken unit tests
-rw-r--r-- | apps/files_sharing/tests/sharedstorage.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/sharedstorage.php b/apps/files_sharing/tests/sharedstorage.php index 27f3b5150d5..972f9257e25 100644 --- a/apps/files_sharing/tests/sharedstorage.php +++ b/apps/files_sharing/tests/sharedstorage.php @@ -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 */ - function testDeleteParentOfMountPoint() { + function testParentOfMountPointIsGone() { // share to user $fileinfo = $this->view->getFileInfo($this->folder); @@ -79,8 +81,8 @@ class Test_Files_Sharing_Storage extends Test_Files_Sharing_Base { $this->assertFalse($user2View->is_dir($this->folder)); // delete the local folder - $result = $user2View->unlink('/localfolder'); - $this->assertTrue($result); + $fullPath = \OC_Config::getValue('datadirectory') . '/' . self::TEST_FILES_SHARING_API_USER2 . '/files/localfolder'; + rmdir($fullPath); //enforce reload of the mount points self::loginHelper(self::TEST_FILES_SHARING_API_USER2); |