From bea82ac65627ed2f967b2a95435d91004d4a8d7e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 2 Feb 2026 18:10:00 +0100 Subject: [PATCH] test: adjust tests to updated getById Signed-off-by: Robin Appelman --- tests/lib/Files/Node/FolderTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/lib/Files/Node/FolderTest.php b/tests/lib/Files/Node/FolderTest.php index 19374fee6c1..e0ed345049b 100644 --- a/tests/lib/Files/Node/FolderTest.php +++ b/tests/lib/Files/Node/FolderTest.php @@ -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);