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:
Andrew Nicols 2023-12-07 15:34:51 +08:00
parent 85c1dd0077
commit 3e6437e67c
No known key found for this signature in database
GPG key ID: 6D1E3157C8CFBF14
3 changed files with 13 additions and 5 deletions

View file

@ -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);