diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-05 15:30:10 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-06 15:46:50 +0200 |
commit | ae7205f550d12d713b0b079eb0889c8f3bafb42b (patch) | |
tree | d9ce6b0f1a244f2dac4a39df32c867b87bd5960f /apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php | |
parent | 151c80039751bbe74042d7f6f5d58e9f115064e4 (diff) | |
download | nextcloud-server-ae7205f550d12d713b0b079eb0889c8f3bafb42b.tar.gz nextcloud-server-ae7205f550d12d713b0b079eb0889c8f3bafb42b.zip |
use existing node in SharesPlugin
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php index 7416cf7a3f7..5f516cec113 100644 --- a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php @@ -167,17 +167,14 @@ class ObjectTreeTest extends \Test\TestCase { $fileInfo = $this->getMockBuilder(FileInfo::class) ->disableOriginalConstructor() ->getMock(); - $fileInfo->expects($this->once()) - ->method('getType') + $fileInfo->method('getType') ->willReturn($type); - $fileInfo->expects($this->once()) - ->method('getName') + $fileInfo->method('getName') ->willReturn($outputFileName); $fileInfo->method('getStorage') ->willReturn($this->createMock(\OC\Files\Storage\Common::class)); - $view->expects($this->once()) - ->method('getFileInfo') + $view->method('getFileInfo') ->with($fileInfoQueryPath) ->willReturn($fileInfo); |