MDL-69464 core_output: Whitespace fix

This commit is contained in:
Andrew Nicols 2020-08-25 13:21:26 +08:00
parent 55f863e012
commit 20c84b6cc2

View File

@ -315,7 +315,7 @@ class core_moodle_page_testcase extends advanced_testcase {
// By default formatting is applied and tags are removed.
$this->testpage->set_heading('a heading <a href="#">edit</a><p>');
$this->assertSame('a heading edit', $this->testpage->heading);
// Without formatting the tags are preserved but cleaned.
$this->testpage->set_heading('a heading <a href="#">edit</a><p>', false);
$this->assertSame('a heading <a href="#">edit</a><p></p>', $this->testpage->heading);