Skip to content

Commit b3ff6ca

Browse files
committed
fix integration tests
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 8d6aaee commit b3ff6ca

1 file changed

Lines changed: 35 additions & 6 deletions

File tree

tests/Integration/Api/ApiV3Test.php

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,8 +1078,15 @@ public function dataGetSubmissions() {
10781078
// 'questionId' => Checked dynamically
10791079
'text' => 'Option 1',
10801080
'fileId' => null,
1081-
]
1082-
]
1081+
'questionName' => 'city',
1082+
],
1083+
[
1084+
// 'submissionId' => Checked dynamically
1085+
// 'questionId' => Checked dynamically
1086+
'text' => '',
1087+
'fileId' => null,
1088+
],
1089+
],
10831090
],
10841091
[
10851092
// 'formId' => Checked dynamically
@@ -1098,8 +1105,15 @@ public function dataGetSubmissions() {
10981105
// 'questionId' => Checked dynamically
10991106
'text' => 'Option 2',
11001107
'fileId' => null,
1101-
]
1102-
]
1108+
'questionName' => 'city',
1109+
],
1110+
[
1111+
// 'submissionId' => Checked dynamically
1112+
// 'questionId' => Checked dynamically
1113+
'text' => '',
1114+
'fileId' => null,
1115+
],
1116+
],
11031117
],
11041118
[
11051119
// 'formId' => Checked dynamically
@@ -1112,8 +1126,21 @@ public function dataGetSubmissions() {
11121126
// 'questionId' => Checked dynamically
11131127
'text' => '',
11141128
'fileId' => null,
1115-
]
1116-
]
1129+
],
1130+
[
1131+
// 'submissionId' => Checked dynamically
1132+
// 'questionId' => Checked dynamically
1133+
'text' => '',
1134+
'fileId' => null,
1135+
'questionName' => 'city',
1136+
],
1137+
[
1138+
// 'submissionId' => Checked dynamically
1139+
// 'questionId' => Checked dynamically
1140+
'text' => '',
1141+
'fileId' => null,
1142+
],
1143+
],
11171144
]
11181145
],
11191146
'questions' => $this->dataGetFullForm()['getFullForm']['expected']['questions'],
@@ -1345,10 +1372,12 @@ public function testNewSubmission() {
13451372
'questionId' => $this->testForms[0]['questions'][1]['id'],
13461373
'text' => 'Option 1',
13471374
'fileId' => null,
1375+
'questionName' => 'city',
13481376
],
13491377
[
13501378
'questionId' => $this->testForms[0]['questions'][2]['id'],
13511379
'text' => 'test.txt',
1380+
'questionName' => 'file',
13521381
],
13531382
]
13541383
], $data['submissions'][0]);

0 commit comments

Comments
 (0)