diff options
author | Marcel Klehr <mklehr@gmx.net> | 2022-11-09 16:12:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 16:12:33 +0300 |
commit | 1a654925e8296191914db2aadd11930bfa1111e7 (patch) | |
tree | c60251467f9267eed5629bdff030ea5a059b04dc | |
parent | 071cfca2413597c577d8652b572f71a1f7964d26 (diff) | |
parent | ed282479a17ce4a1cd31ce04f405fdcaffcb0b5c (diff) |
Merge pull request #4184 from nextcloud/bugfix/noid/integration-validators
-rw-r--r-- | lib/Service/AttachmentService.php | 2 | ||||
-rw-r--r-- | tests/integration/features/bootstrap/AttachmentContext.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Service/AttachmentService.php b/lib/Service/AttachmentService.php index f9eb9682..b563f0bc 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 38172075..051789ae 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; } |