Skip to content

Commit

Permalink
fixup: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
susnux committed Apr 23, 2024
1 parent 4a5cd72 commit fecb454
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Integration/Api/ApiV2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,8 @@ public function dataCreateNewOption() {
'newOption' => [
'expected' => [
// 'questionId' => Done dynamically below.
'text' => 'A new Option.'
'text' => 'A new Option.',
'order' => null,
]
]
];
Expand Down Expand Up @@ -934,6 +935,10 @@ public function dataDeleteOption() {
$fullFormExpected = $this->dataGetFullForm()['getFullForm']['expected'];
array_splice($fullFormExpected['questions'][1]['options'], 0, 1);

// Now the other options are reordered
$fullFormExpected['questions'][1]['options'][0]['order'] = 0;
$fullFormExpected['questions'][1]['options'][1]['order'] = 1;

return [
'deleteOption' => [
'fullFormExpected' => $fullFormExpected
Expand Down

0 comments on commit fecb454

Please sign in to comment.