Skip to content

Commit 563ae4f

Browse files
committed
try
Signed-off-by: nabim777 <[email protected]>
1 parent 6e8e0e0 commit 563ae4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/lib/Service/OpenProjectAPIServiceTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,14 @@ private function getOpenProjectAPIService(
760760

761761
$guestAvatarMock = $this->getMockBuilder(GuestAvatar::class)->disableOriginalConstructor()->getMock();
762762

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+
763771
$avatarManagerMock = $this->getMockBuilder('\OCP\IAvatarManager')
764772
->getMock();
765773
$avatarManagerMock

0 commit comments

Comments
 (0)