diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-15 11:19:31 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-23 12:54:26 +0200 |
commit | 652d417a585ede1564456c446577aa1752253ccd (patch) | |
tree | 068b69d1996342739e1ccba556d83eed48195fb8 /apps/files_sharing/tests/cache.php | |
parent | b712393e72fc22dc9d38f074b2eca848e6439bcf (diff) | |
download | nextcloud-server-652d417a585ede1564456c446577aa1752253ccd.tar.gz nextcloud-server-652d417a585ede1564456c446577aa1752253ccd.zip |
we don't allow to share a folder if it contains a share mount point
Diffstat (limited to 'apps/files_sharing/tests/cache.php')
-rw-r--r-- | apps/files_sharing/tests/cache.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/cache.php b/apps/files_sharing/tests/cache.php index 7a52f403d8e..b8ebeab3c39 100644 --- a/apps/files_sharing/tests/cache.php +++ b/apps/files_sharing/tests/cache.php @@ -255,7 +255,7 @@ class Test_Files_Sharing_Cache extends Test_Files_Sharing_Base { */ $sharedCache = $sharedStorage->getCache(); - $this->assertEquals('test.txt', $sharedCache->getPathById($info->getId())); + $this->assertEquals('', $sharedCache->getPathById($info->getId())); } public function testGetPathByIdShareSubFolder() { @@ -276,7 +276,7 @@ class Test_Files_Sharing_Cache extends Test_Files_Sharing_Base { */ $sharedCache = $sharedStorage->getCache(); - $this->assertEquals('foo', $sharedCache->getPathById($folderInfo->getId())); - $this->assertEquals('foo/bar/test.txt', $sharedCache->getPathById($fileInfo->getId())); + $this->assertEquals('', $sharedCache->getPathById($folderInfo->getId())); + $this->assertEquals('bar/test.txt', $sharedCache->getPathById($fileInfo->getId())); } } |