mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
test: adjust tests to updated getById
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
72150d6deb
commit
bea82ac656
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue