Skip to content

Commit 2f15a21

Browse files
author
lafricain79
committed
fix: update unit tests to include maxSubmissions and isMaxSubmissionsReached fields
1 parent fb2a519 commit 2f15a21

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

tests/Unit/Controller/ApiControllerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ public function dataTestCreateNewForm() {
413413
'allowEditSubmissions' => false,
414414
'lockedBy' => null,
415415
'lockedUntil' => null,
416+
'maxSubmissions' => null,
416417
]]
417418
];
418419
}

tests/Unit/Service/FormsServiceTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ public function dataGetForm() {
255255
'allowEditSubmissions' => false,
256256
'lockedBy' => null,
257257
'lockedUntil' => null,
258+
'maxSubmissions' => null,
259+
'isMaxSubmissionsReached' => false,
258260
]]
259261
];
260262
}
@@ -474,6 +476,8 @@ public function dataGetPublicForm() {
474476
'allowEditSubmissions' => false,
475477
'lockedBy' => null,
476478
'lockedUntil' => null,
479+
'maxSubmissions' => null,
480+
'isMaxSubmissionsReached' => false,
477481
]]
478482
];
479483
}

0 commit comments

Comments
 (0)