mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 20:06:46 +02:00
MDL-80072 core: Mark nocache option to format_text as deprecated
This was actually deprecated back in MDL-34347 but never actually emitted.
This commit is contained in:
parent
85c1dd0077
commit
3e6437e67c
3 changed files with 13 additions and 5 deletions
|
@ -111,9 +111,9 @@ class htmlpurifier_test extends \basic_testcase {
|
|||
*/
|
||||
public function test_format_text_allowid() {
|
||||
// Start off by not allowing ids (default).
|
||||
$options = array(
|
||||
'nocache' => true
|
||||
);
|
||||
$options = [
|
||||
'allowid' => false,
|
||||
];
|
||||
$result = format_text('<div id="example">Frog</div>', FORMAT_HTML, $options);
|
||||
$this->assertSame('<div>Frog</div>', $result);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue