Skip to content

Commit

Permalink
tests(checkboxesfield): fix bad test
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Apr 1, 2020
1 parent 178c529 commit 8ceb6b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/suite-unit/PluginFormcreatorCheckboxesField.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,10 @@ public function providerDeserializeValue() {
* @dataProvider providerDeserializeValue
*/
public function testDeserializeValue($value, $expected) {
global $DB;

$question = $this->getQuestion([
'values' => "foo\r\nbar\r\ntest d'apostrophe",
'values' => $DB->escape("foo\r\nbar\r\ntest d'apostrophe"),
]);
$instance = new \PluginFormcreatorCheckboxesField($question);
$instance->deserializeValue($value);
Expand Down

0 comments on commit 8ceb6b8

Please sign in to comment.