Skip to content

Commit

Permalink
fix(checkboxesfield): back to BR
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Oct 24, 2022
1 parent 56d1e7e commit c8908f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/3-unit/GlpiPlugin/Formcreator/Field/CheckboxesField.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,21 +301,21 @@ public function providerGetValueForTargetText() {
'values' => "[]"
]),
'value' => json_encode(['a']),
'expected' => '<p></p>'
'expected' => ''
],
[
'question' => $this->getQuestion([
'values' => json_encode(['a', 'b', 'c'])
]),
'value' => json_encode(['a']),
'expected' => '<p>a</p>'
'expected' => 'a'
],
[
'question' => $this->getQuestion([
'values' => json_encode(['a', 'b', 'c'])
]),
'value' => json_encode(['a', 'c']),
'expected' => '<p>a</p><p>c</p>'
'expected' => 'a<br />c'
],
];
}
Expand Down

0 comments on commit c8908f2

Please sign in to comment.