diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-18 13:29:40 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-08-24 22:20:32 +0200 |
commit | b2d64357370eedf4bf980b9d217e1af9c6e61461 (patch) | |
tree | 9eba893ce1fe1bf1f8a71aa89b82c65938a467da /tests | |
parent | b6265a825560b57d635f23075de5d21282dc1c27 (diff) | |
download | nextcloud-server-b2d64357370eedf4bf980b9d217e1af9c6e61461.tar.gz nextcloud-server-b2d64357370eedf4bf980b9d217e1af9c6e61461.zip |
Avoid extra query for the parent node if we can pass it along
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Node/FolderTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Files/Node/FolderTest.php b/tests/lib/Files/Node/FolderTest.php index 4cda92b6e83..2be0257aacb 100644 --- a/tests/lib/Files/Node/FolderTest.php +++ b/tests/lib/Files/Node/FolderTest.php @@ -178,7 +178,7 @@ class FolderTest extends NodeTest { ->willReturn(true); $node = new Folder($root, $view, '/bar/foo'); - $child = new Folder($root, $view, '/bar/foo/asd'); + $child = new Folder($root, $view, '/bar/foo/asd', null, $node); $result = $node->newFolder('asd'); $this->assertEquals($child, $result); } @@ -228,7 +228,7 @@ class FolderTest extends NodeTest { ->willReturn(true); $node = new Folder($root, $view, '/bar/foo'); - $child = new \OC\Files\Node\File($root, $view, '/bar/foo/asd'); + $child = new \OC\Files\Node\File($root, $view, '/bar/foo/asd', null, $node); $result = $node->newFile('asd'); $this->assertEquals($child, $result); } |