diff --git a/lib/Service/AttachmentService.php b/lib/Service/AttachmentService.php index f9eb96822..b563f0bcf 100644 --- a/lib/Service/AttachmentService.php +++ b/lib/Service/AttachmentService.php @@ -194,7 +194,7 @@ class AttachmentService { * @throws BadRequestException */ public function create($cardId, $type, $data) { - $this->attachmentServiceValidator->check(compact('cardId', 'type', 'data')); + $this->attachmentServiceValidator->check(compact('cardId', 'type')); $this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_EDIT); diff --git a/tests/integration/features/bootstrap/AttachmentContext.php b/tests/integration/features/bootstrap/AttachmentContext.php index 38172075e..051789aec 100644 --- a/tests/integration/features/bootstrap/AttachmentContext.php +++ b/tests/integration/features/bootstrap/AttachmentContext.php @@ -67,6 +67,7 @@ class AttachmentContext implements Context { * @Given remember the last attachment as :arg1 */ public function rememberTheLastAttachmentAs($arg1) { + $this->requestContext->theResponseShouldHaveStatusCode(200); $this->lastAttachment = $this->requestContext->getResponseBodyFromJson(); $this->rememberedAttachments[$arg1] = $this->lastAttachment; }