Skip to content

Commit dad1cfd

Browse files
committed
tests(checkboxesfield): fix bad test
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 1c48b38 commit dad1cfd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/suite-unit/PluginFormcreatorCheckboxesField.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,10 @@ public function providerDeserializeValue() {
274274
* @dataProvider providerDeserializeValue
275275
*/
276276
public function testDeserializeValue($value, $expected) {
277+
global $DB;
278+
277279
$question = $this->getQuestion([
278-
'values' => "foo\r\nbar\r\ntest d'apostrophe",
280+
'values' => $DB->escape("foo\r\nbar\r\ntest d'apostrophe"),
279281
]);
280282
$instance = new \PluginFormcreatorCheckboxesField($question);
281283
$instance->deserializeValue($value);

0 commit comments

Comments
 (0)