File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1362,6 +1362,12 @@ public function testInsertSubmission(array $submissionsExpected) {
1362
1362
$ this ->assertEquals ($ data ['submissions ' ][0 ]['id ' ], $ answer ['submissionId ' ]);
1363
1363
unset($ data ['submissions ' ][0 ]['answers ' ][$ aIndex ]['id ' ]);
1364
1364
unset($ data ['submissions ' ][0 ]['answers ' ][$ aIndex ]['submissionId ' ]);
1365
+
1366
+ if (isset ($ answer ['fileId ' ])) {
1367
+ $ this ->assertIsNumeric ($ answer ['fileId ' ], 'fileId should be numeric. ' );
1368
+ $ this ->assertGreaterThan (0 , $ answer ['fileId ' ], 'fileId should be greater than 0. ' );
1369
+ unset($ data ['submissions ' ][0 ]['answers ' ][$ aIndex ]['fileId ' ]);
1370
+ }
1365
1371
}
1366
1372
unset($ data ['submissions ' ][0 ]['id ' ]);
1367
1373
// Check general behaviour of timestamp (Insert in the last 10 seconds)
@@ -1386,7 +1392,6 @@ public function testInsertSubmission(array $submissionsExpected) {
1386
1392
[
1387
1393
'questionId ' => $ this ->testForms [0 ]['questions ' ][2 ]['id ' ],
1388
1394
'text ' => 'test.txt ' ,
1389
- 'fileId ' => 28 ,
1390
1395
],
1391
1396
]
1392
1397
], $ data ['submissions ' ][0 ]);
You can’t perform that action at this time.
0 commit comments