diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-11-09 00:04:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 00:04:25 +0100 |
commit | 989a8a3668ee2f8214bc0391b8d38f1e9b99bde0 (patch) | |
tree | 9d23b314ae0214bb902cb50f167aef786447d3e3 /tests/lib | |
parent | f9d8eb2a2ed22f630b38a3849725039ae84c63b9 (diff) | |
parent | 3f0cb130421b4626041d3d60f0bde9e5da9d5dcc (diff) | |
download | nextcloud-server-989a8a3668ee2f8214bc0391b8d38f1e9b99bde0.tar.gz nextcloud-server-989a8a3668ee2f8214bc0391b8d38f1e9b99bde0.zip |
Merge pull request #6220 from nextcloud/cached-mount-info-filepath
Allow getting the filepath when getting cached mounts by fileid
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/Files/Config/UserMountCacheTest.php | 4 |
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() { |