Skip to content

Commit 5a33c6e

Browse files
committed
fixup! test: update form tests to include lockedBy and lockedUntil fields
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent c8d7c14 commit 5a33c6e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/Unit/FormsMigratorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@
99

1010
use OCA\Forms\Db\AnswerMapper;
1111

12-
// use OCA\Forms\Db\Answer;
1312
use OCA\Forms\Db\Form;
1413
use OCA\Forms\Db\FormMapper;
1514
use OCA\Forms\Db\OptionMapper;
16-
// use OCA\Forms\Db\Option;
1715
use OCA\Forms\Db\QuestionMapper;
18-
// use OCA\Forms\Db\Question;
1916
use OCA\Forms\Db\SubmissionMapper;
20-
// use OCA\Forms\Db\Submission;
2117
use OCA\Forms\FormsMigrator;
2218
use OCA\Forms\Service\FormsService;
2319
use OCA\Forms\Service\SubmissionService;
@@ -106,6 +102,8 @@ public function dataExport() {
106102
},
107103
"expires": 0,
108104
"state": 0,
105+
"lockedBy": null,
106+
"lockedUntil": null,
109107
"isAnonymous": false,
110108
"submitMultiple": false,
111109
"allowEditSubmissions": false,
@@ -168,6 +166,8 @@ public function testExport(string $expectedJson) {
168166
$form = new Form();
169167
$form->setId(42);
170168
$form->setState(0);
169+
$form->setLockedBy(null);
170+
$form->setLockedBy(null);
171171
$form->setHash('abcdefg');
172172
$form->setTitle('Link');
173173
$form->setDescription('');

0 commit comments

Comments
 (0)