Skip to content

Commit 9f861be

Browse files
committed
fix testCanSubmit with AllowEdit=false
Signed-off-by: Timotheus Pokorra <[email protected]>
1 parent a393ac7 commit 9f861be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Unit/Service/FormsServiceTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ public function dataCanSubmit() {
821821
* @param bool $hasFormSubmissionsByUser
822822
* @param bool $expected
823823
*/
824-
public function testCanSubmit(string $ownerId, bool $submitMultiple, bool $hasFormSubmissionsByUser, bool $expected) {
824+
public function testCanSubmit(string $ownerId, bool $submitMultiple, bool $allowEdit, bool $hasFormSubmissionsByUser, bool $expected) {
825825
$form = new Form();
826826
$form->setId(42);
827827
$form->setAccess([
@@ -830,6 +830,7 @@ public function testCanSubmit(string $ownerId, bool $submitMultiple, bool $hasFo
830830
]);
831831
$form->setOwnerId($ownerId);
832832
$form->setSubmitMultiple($submitMultiple);
833+
$form->setAllowEdit($allowEdit);
833834

834835
$this->submissionMapper->expects($this->any())
835836
->method('hasFormSubmissionsByUser')

0 commit comments

Comments
 (0)