Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-08-22 16:44:52 +0300
committerRobin Appelman <robin@icewind.nl>2017-12-12 16:11:40 +0300
commit3ec1bbbde88a9fbd0b3449ff94bf5dcf15c5a17a (patch)
tree1e169b472705585d95dae7a0edde8ecc683890ef /tests
parentf44d5bde5604eab628a4194fb2d111aa84ca2082 (diff)
Allow getting the filepath when getting cached mounts by fileid
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-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 7df2598106a..6bc83386037 100644
--- a/tests/lib/Files/Config/UserMountCacheTest.php
+++ b/tests/lib/Files/Config/UserMountCacheTest.php
@@ -379,6 +379,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() {
@@ -411,6 +413,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() {