Commit 05ff65b5 authored by alexpott's avatar alexpott

Issue #2568257 by mr.baileys, lauriii, xjm: Add double escape test for hook_help()

parent b37e84f0
......@@ -112,6 +112,11 @@ protected function verifyHelp($response = 200) {
}
foreach ($admin_tasks as $task) {
$this->assertLink($task['title']);
// Ensure there are no double escaped '&' or '<' characters.
$this->assertNoEscaped('&amp;', 'The help text does not have double escaped &amp;.');
$this->assertNoEscaped('&lt;', 'The help text does not have double escaped &lt;.');
// Ensure there are no escaped '<' characters.
$this->assertNoEscaped('<', 'The help text does not have single escaped &lt;.');
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment