test: adjust tests to updated getById

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-02-02 18:10:00 +01:00
parent 72150d6deb
commit bea82ac656
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -541,6 +541,8 @@ class FolderTest extends NodeTestCase {
$manager->method('getMountFromMountInfo')
->willReturn($mount);
$manager->method('getMountsByMountProvider')
->willReturn([$mount]);
$node = new Folder($root, $view, '/bar/foo');
$result = $node->getById(1);
@ -586,6 +588,8 @@ class FolderTest extends NodeTestCase {
$manager->method('getMountFromMountInfo')
->willReturn($mount);
$manager->method('getMountsByMountProvider')
->willReturn([$mount]);
$node = new Folder($root, $view, '/bar');
$result = $node->getById(1);
@ -631,6 +635,8 @@ class FolderTest extends NodeTestCase {
$manager->method('getMountFromMountInfo')
->willReturn($mount);
$manager->method('getMountsByMountProvider')
->willReturn([$mount]);
$node = new Folder($root, $view, '/bar/foo');
$result = $node->getById(1);
@ -694,6 +700,8 @@ class FolderTest extends NodeTestCase {
}
return null;
});
$manager->method('getMountsByMountProvider')
->willReturn([$mount1, $mount2]);
$node = new Folder($root, $view, '/bar/foo');
$result = $node->getById(1);