Commit 81f4bc82 authored by alexpott's avatar alexpott

Issue #2006568 by ParisLiakos, dawehner: Convert filter_xss() tests to unit tests.

parent 466c8c4c
......@@ -34,16 +34,6 @@ protected function setUp() {
config_install_default_config('module', 'system');
}
/**
* Checks that invalid multi-byte sequences are rejected.
*/
function testInvalidMultiByte() {
$text = filter_xss("Foo\xC0barbaz");
$this->assertEqual($text, '', 'filter_xss() rejects invalid sequence "Foo\xC0barbaz"');
$text = filter_xss("Fooÿñ");
$this->assertEqual($text, "Fooÿñ", 'filter_xss() accepts valid sequence Fooÿñ');
}
/**
* Tests t() functionality.
*/
......
This diff is collapsed.
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