Skip to content

Commit

Permalink
fix testCanSubmit with AllowEdit=false
Browse files Browse the repository at this point in the history
Signed-off-by: Timotheus Pokorra <[email protected]>
  • Loading branch information
tpokorra committed Jan 3, 2025
1 parent a393ac7 commit 9f861be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Unit/Service/FormsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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')
Expand Down

0 comments on commit 9f861be

Please sign in to comment.