We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e8e0e0 commit 563ae4fCopy full SHA for 563ae4f
tests/lib/Service/OpenProjectAPIServiceTest.php
@@ -760,6 +760,14 @@ private function getOpenProjectAPIService(
760
761
$guestAvatarMock = $this->getMockBuilder(GuestAvatar::class)->disableOriginalConstructor()->getMock();
762
763
+ $avatarFileMock = $this->createMock('\OCP\Files\SimpleFS\ISimpleFile');
764
+ $avatarFileMock->method('getContent')
765
+ ->willReturn(\file_get_contents(__DIR__ . "/../fixtures/openproject-icon.jpg"));
766
+
767
+ $guestAvatarMock->method('getFile')
768
+ ->with(64)
769
+ ->willReturn($avatarFileMock);
770
771
$avatarManagerMock = $this->getMockBuilder('\OCP\IAvatarManager')
772
->getMock();
773
$avatarManagerMock
0 commit comments