diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-10-12 17:27:26 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-10-20 09:49:44 +0200 |
commit | be9df999fcd139062e2c1b364348680153a36856 (patch) | |
tree | 9e0dcc15cb2ed93f5ba8fd2107de72b4c2218022 /apps | |
parent | 96feb6f05bf028621275835931dada57ceb9772e (diff) | |
download | nextcloud-server-be9df999fcd139062e2c1b364348680153a36856.tar.gz nextcloud-server-be9df999fcd139062e2c1b364348680153a36856.zip |
Fix shared storage tests for non local home storage
Diffstat (limited to 'apps')
-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); |