diff --git a/api/Tests/BusinessLogic/Attachments/AttachmentHandlerTest.php b/api/Tests/BusinessLogic/Attachments/AttachmentHandlerTest.php index 7ee2eb84..a3d5003f 100644 --- a/api/Tests/BusinessLogic/Attachments/AttachmentHandlerTest.php +++ b/api/Tests/BusinessLogic/Attachments/AttachmentHandlerTest.php @@ -100,6 +100,7 @@ class AttachmentHandlerTest extends TestCase { function testThatValidateThrowsAnExceptionWhenTheAttachmentBodyIsInvalidBase64() { //-- Arrange + $this->ticketGateway->method('getTicketById')->willReturn(new Ticket()); $this->userToTicketChecker->method('isTicketAccessibleToUser')->willReturn(true); $this->createAttachmentForTicketModel->attachmentContents = 'invalid base 64';