Skip to content

Commit cd4e5b8

Browse files
committed
test: adjust tests to updated getById
Signed-off-by: Robin Appelman <[email protected]>
1 parent 6166ade commit cd4e5b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/lib/Files/Node/FolderTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,8 @@ public function testGetById(): void {
541541

542542
$manager->method('getMountFromMountInfo')
543543
->willReturn($mount);
544+
$manager->method('getMountsByMountProvider')
545+
->willReturn([$mount]);
544546

545547
$node = new Folder($root, $view, '/bar/foo');
546548
$result = $node->getById(1);
@@ -586,6 +588,8 @@ public function testGetByIdMountRoot(): void {
586588

587589
$manager->method('getMountFromMountInfo')
588590
->willReturn($mount);
591+
$manager->method('getMountsByMountProvider')
592+
->willReturn([$mount]);
589593

590594
$node = new Folder($root, $view, '/bar');
591595
$result = $node->getById(1);
@@ -631,6 +635,8 @@ public function testGetByIdOutsideFolder(): void {
631635

632636
$manager->method('getMountFromMountInfo')
633637
->willReturn($mount);
638+
$manager->method('getMountsByMountProvider')
639+
->willReturn([$mount]);
634640

635641
$node = new Folder($root, $view, '/bar/foo');
636642
$result = $node->getById(1);
@@ -694,6 +700,8 @@ public function testGetByIdMultipleStorages(): void {
694700
}
695701
return null;
696702
});
703+
$manager->method('getMountsByMountProvider')
704+
->willReturn([$mount1, $mount2]);
697705

698706
$node = new Folder($root, $view, '/bar/foo');
699707
$result = $node->getById(1);

0 commit comments

Comments
 (0)