From 5b8f30f6a46b75c768f28b935ed55127a8fde641 Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Fri, 3 Jan 2025 07:56:20 +0100 Subject: [PATCH] fix testCanSubmit with AllowEdit=false --- tests/Unit/Service/FormsServiceTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Service/FormsServiceTest.php b/tests/Unit/Service/FormsServiceTest.php index 25f69f829..8fe5dea68 100644 --- a/tests/Unit/Service/FormsServiceTest.php +++ b/tests/Unit/Service/FormsServiceTest.php @@ -821,7 +821,7 @@ public function dataCanSubmit() { * @param bool $hasFormSubmissionsByUser * @param bool $expected */ - public function testCanSubmit(string $ownerId, bool $submitMultiple, bool $hasFormSubmissionsByUser, bool $expected) { + public function testCanSubmit(string $ownerId, bool $submitMultiple, bool $allowEdit, bool $hasFormSubmissionsByUser, bool $expected) { $form = new Form(); $form->setId(42); $form->setAccess([ @@ -830,6 +830,7 @@ public function testCanSubmit(string $ownerId, bool $submitMultiple, bool $hasFo ]); $form->setOwnerId($ownerId); $form->setSubmitMultiple($submitMultiple); + $form->setAllowEdit($allowEdit); $this->submissionMapper->expects($this->any()) ->method('hasFormSubmissionsByUser')