diff --git a/tests/lib/Files/Config/UserMountCacheTest.php b/tests/lib/Files/Config/UserMountCacheTest.php index 30c64bf20fad6..1efc56c19087d 100644 --- a/tests/lib/Files/Config/UserMountCacheTest.php +++ b/tests/lib/Files/Config/UserMountCacheTest.php @@ -101,6 +101,8 @@ private function getStorage($storageId, $rootInternalPath = '') { $cache->expects($this->any()) ->method('getId') ->willReturn($rootId); + $cache->method('getNumericStorageId') + ->willReturn($storageId); $storage = $this->getMockBuilder('\OC\Files\Storage\Storage') ->disableOriginalConstructor()