From 3f0cb130421b4626041d3d60f0bde9e5da9d5dcc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 22 Aug 2017 15:44:52 +0200 Subject: Allow getting the filepath when getting cached mounts by fileid Signed-off-by: Robin Appelman --- tests/lib/Files/Config/UserMountCacheTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/lib/Files') 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() { -- cgit v1.2.3