Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
janette committed Dec 21, 2022
1 parent 115b220 commit 80965d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/json_form_widget/src/ValueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ public function handleArrayValues($formValues, $property, $schema) {
$data = array_merge($data, $this->flattenArraysInArrays($value));
}
}

return !empty($data) ? $data : FALSE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ public function testSchemaUi() {
'arcgis' => 'arcgis',
'csv' => 'csv',
],
'#other_option' => '',
'#default_value' => 'csv',
],
];
Expand Down Expand Up @@ -604,6 +605,7 @@ public function testSchemaUi() {
],
'#default_value' => 'https://url.to.api.or.file',
'#input_type' => 'textfield',
'#other_option' => '',
],
];
$form = $ui_handler->applySchemaUi($form);
Expand Down Expand Up @@ -675,6 +677,7 @@ public function testAutocompleteOnComplex() {
'Option 1' => 'Option 1',
'Option 2' => 'Option 2',
],
'#other_option' => '',
'#multiple' => TRUE,
'#autocreate' => TRUE,
'#target_type' => 'node',
Expand Down Expand Up @@ -737,6 +740,7 @@ public function testAutocompleteOnSimple() {
'Option 1' => 'Option 1',
'Option 2' => 'Option 2',
],
'#other_option' => '',
'#multiple' => TRUE,
'#autocreate' => TRUE,
'#target_type' => 'node',
Expand Down Expand Up @@ -828,6 +832,7 @@ public function testAutocompleteHideActions() {
'Option 1' => 'Option 1',
'Option 2' => 'Option 2',
],
'#other_option' => '',
'#multiple' => TRUE,
'#autocreate' => TRUE,
'#target_type' => 'node',
Expand Down Expand Up @@ -881,6 +886,7 @@ public function testAutocompleteHideActions() {
'Option 1' => 'Option 1',
'Option 2' => 'Option 2',
],
'#other_option' => '',
'#multiple' => TRUE,
'#autocreate' => TRUE,
'#target_type' => 'node',
Expand Down

0 comments on commit 80965d2

Please sign in to comment.