We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c48b38 commit dad1cfdCopy full SHA for dad1cfd
tests/suite-unit/PluginFormcreatorCheckboxesField.php
@@ -274,8 +274,10 @@ public function providerDeserializeValue() {
274
* @dataProvider providerDeserializeValue
275
*/
276
public function testDeserializeValue($value, $expected) {
277
+ global $DB;
278
+
279
$question = $this->getQuestion([
- 'values' => "foo\r\nbar\r\ntest d'apostrophe",
280
+ 'values' => $DB->escape("foo\r\nbar\r\ntest d'apostrophe"),
281
]);
282
$instance = new \PluginFormcreatorCheckboxesField($question);
283
$instance->deserializeValue($value);
0 commit comments