]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix broken unit tests
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 14 Aug 2014 15:21:52 +0000 (17:21 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Mon, 18 Aug 2014 14:52:48 +0000 (16:52 +0200)
apps/files_sharing/tests/sharedstorage.php

index 27f3b5150d53fcfbfb35414c5b79ca41f958bdb8..972f9257e2597a937acd357b45eeb1a5da8e699e 100644 (file)
@@ -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);