mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-28627 remove buggy and obsolete KSES cleaning
This commit is contained in:
parent
3a81b37617
commit
73b309e6a3
10 changed files with 9 additions and 902 deletions
|
@ -30,21 +30,16 @@ class purifier_test extends UnitTestCase {
|
|||
|
||||
public static $includecoverage = array('lib/htmlpurifier/HTMLPurifier.php');
|
||||
|
||||
private $enablehtmlpurifier = null;
|
||||
private $cachetext = null;
|
||||
|
||||
function setUp() {
|
||||
global $CFG;
|
||||
$this->enablehtmlpurifier = $CFG->enablehtmlpurifier;
|
||||
$CFG->enablehtmlpurifier = 1;
|
||||
|
||||
$this->cachetext = $CFG->cachetext;
|
||||
$CFG->cachetext = 0;
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
global $CFG;
|
||||
$CFG->enablehtmlpurifier = $this->enablehtmlpurifier;
|
||||
$CFG->cachetext = $this->cachetext;
|
||||
}
|
||||
|
||||
|
|
|
@ -83,11 +83,6 @@ class web_test extends UnitTestCase {
|
|||
$this->assertEqual(wikify_links('this is a <a href="http://someaddress.com/query">link</a>'), 'this is a link [ http://someaddress.com/query ]');
|
||||
}
|
||||
|
||||
function test_fix_non_standard_entities() {
|
||||
$this->assertEqual(fix_non_standard_entities('£ä'), '£ä');
|
||||
$this->assertEqual(fix_non_standard_entities('£ä'), '£ä');
|
||||
}
|
||||
|
||||
function test_compare_url() {
|
||||
$url1 = new moodle_url('index.php', array('var1' => 1, 'var2' => 2));
|
||||
$url2 = new moodle_url('index2.php', array('var1' => 1, 'var2' => 2, 'var3' => 3));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue