Skip to content

Commit

Permalink
test(dropdownfield): update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jun 11, 2021
1 parent 6a01156 commit 3777d83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/3-unit/GlpiPlugin/Formcreator/Field/DropdownField.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ public function providerPrepareQuestionInputForSave() {
'dropdown_values' => \Location::class,
'show_tree_depth' => '5',
'show_tree_root' => '0',
'selectable_tree_root' => '0',
],
'expected' => [
'name' => $name,
'values' => json_encode([
'itemtype' => \Location::class,
'show_tree_depth' => '5',
'show_tree_root' => '0',
'selectable_tree_root' => '0',
]),
'default_values' => '',
]
Expand All @@ -82,6 +84,7 @@ public function providerPrepareQuestionInputForSave() {
'show_ticket_categories' => '2',
'show_tree_depth' => '3',
'show_tree_root' => '',
'selectable_tree_root' => '0',
]),
'default_values' => '',
]
Expand Down

0 comments on commit 3777d83

Please sign in to comment.