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')