mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #50164 from nextcloud/mountpoint-get-numeric-storage-id-cache
fix: use proper way to get numeric storage id for mountpoint
This commit is contained in:
commit
d4b862e513
2 changed files with 3 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ class MountPoint implements IMountPoint {
|
|||
if (is_null($storage)) {
|
||||
return -1;
|
||||
}
|
||||
$this->numericStorageId = $storage->getStorageCache()->getNumericId();
|
||||
$this->numericStorageId = $storage->getCache()->getNumericStorageId();
|
||||
}
|
||||
return $this->numericStorageId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,6 +101,8 @@ class UserMountCacheTest extends TestCase {
|
|||
$cache->expects($this->any())
|
||||
->method('getId')
|
||||
->willReturn($rootId);
|
||||
$cache->method('getNumericStorageId')
|
||||
->willReturn($storageId);
|
||||
|
||||
$storage = $this->getMockBuilder('\OC\Files\Storage\Storage')
|
||||
->disableOriginalConstructor()
|
||||
|
|
|
|||
Loading…
Reference in a new issue