summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Config
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-08-22 15:44:52 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-10-27 14:35:34 +0200
commit3f0cb130421b4626041d3d60f0bde9e5da9d5dcc (patch)
treea57e37c46c3e3c8bd125f75929402af7d68c325b /tests/lib/Files/Config
parent7a4c0c668baef6fe86b6131444cab122a4b3b374 (diff)
downloadnextcloud-server-3f0cb130421b4626041d3d60f0bde9e5da9d5dcc.tar.gz
nextcloud-server-3f0cb130421b4626041d3d60f0bde9e5da9d5dcc.zip
Allow getting the filepath when getting cached mounts by fileid
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Files/Config')
-rw-r--r--tests/lib/Files/Config/UserMountCacheTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Files/Config/UserMountCacheTest.php b/tests/lib/Files/Config/UserMountCacheTest.php
index a96b385fcbf..ddf40a2b5e5 100644
--- a/tests/lib/Files/Config/UserMountCacheTest.php
+++ b/tests/lib/Files/Config/UserMountCacheTest.php
@@ -380,6 +380,8 @@ class UserMountCacheTest extends TestCase {
$this->assertEquals($user1, $cachedMounts[0]->getUser());
$this->assertEquals($rootId, $cachedMounts[0]->getRootId());
$this->assertEquals(2, $cachedMounts[0]->getStorageId());
+ $this->assertEquals('foo/bar', $cachedMounts[0]->getInternalPath());
+ $this->assertEquals('/foo/foo/bar', $cachedMounts[0]->getPath());
}
public function testGetMountsForFileIdSubFolderMount() {
@@ -412,6 +414,8 @@ class UserMountCacheTest extends TestCase {
$this->assertEquals($folderId, $cachedMounts[0]->getRootId());
$this->assertEquals(2, $cachedMounts[0]->getStorageId());
$this->assertEquals('foo', $cachedMounts[0]->getRootInternalPath());
+ $this->assertEquals('bar', $cachedMounts[0]->getInternalPath());
+ $this->assertEquals('/bar', $cachedMounts[0]->getPath());
}
public function testGetMountsForFileIdSubFolderMountOutside() {