diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-10-12 17:27:26 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-16 21:41:51 +0200 |
commit | e7f75484f87df41be5ef8dedce670bd2ccd12dc2 (patch) | |
tree | a351704f21f394004819addae3f3d83737f857d7 | |
parent | 0cdd46de60a7784d610aae61b9e6d52df611f91f (diff) | |
download | nextcloud-server-e7f75484f87df41be5ef8dedce670bd2ccd12dc2.tar.gz nextcloud-server-e7f75484f87df41be5ef8dedce670bd2ccd12dc2.zip |
Fix shared storage tests for non local home storage
-rw-r--r-- | apps/files_sharing/tests/sharedstorage.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/sharedstorage.php b/apps/files_sharing/tests/sharedstorage.php index de36d6dbd42..3361d2cbd12 100644 --- a/apps/files_sharing/tests/sharedstorage.php +++ b/apps/files_sharing/tests/sharedstorage.php @@ -87,9 +87,9 @@ class Test_Files_Sharing_Storage extends OCA\Files_sharing\Tests\TestCase { $this->assertFalse($user2View->is_dir($this->folder)); // delete the local folder -// list($storage, $internalPa) - $fullPath = \OC_Config::getValue('datadirectory') . '/' . self::TEST_FILES_SHARING_API_USER2 . '/files/localfolder'; - rmdir($fullPath); + /** @var \OC\Files\Storage\Storage $storage */ + list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath('/' . self::TEST_FILES_SHARING_API_USER2 . '/files/localfolder'); + $storage->rmdir($internalPath); //enforce reload of the mount points self::loginHelper(self::TEST_FILES_SHARING_API_USER2); |