Fix shared storage tests for non local home storage
This commit is contained in:
parent
0cdd46de60
commit
e7f75484f8
|
@ -87,9 +87,9 @@ class Test_Files_Sharing_Storage extends OCA\Files_sharing\Tests\TestCase {
|
||||||
$this->assertFalse($user2View->is_dir($this->folder));
|
$this->assertFalse($user2View->is_dir($this->folder));
|
||||||
|
|
||||||
// delete the local folder
|
// delete the local folder
|
||||||
// list($storage, $internalPa)
|
/** @var \OC\Files\Storage\Storage $storage */
|
||||||
$fullPath = \OC_Config::getValue('datadirectory') . '/' . self::TEST_FILES_SHARING_API_USER2 . '/files/localfolder';
|
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath('/' . self::TEST_FILES_SHARING_API_USER2 . '/files/localfolder');
|
||||||
rmdir($fullPath);
|
$storage->rmdir($internalPath);
|
||||||
|
|
||||||
//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);
|
||||||
|
|
Loading…
Reference in New Issue