Skip to content

Commit

Permalink
issue #166: Resolve unit test failure
Browse files Browse the repository at this point in the history
 - Resolves issue post MDL-79276, adding the $CFG->closingtags if they exists
  • Loading branch information
ScottVerbeek committed Jan 8, 2024
1 parent 391dee8 commit b2531b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cleaner/muc/tests/phpunit/output/index_renderer_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@ public function test_it_downloads_environment_config_file() {
}

private function get_page() {
global $CFG;

ob_start();
try {
(new controller())->index();
$html = ob_get_contents();
$html .= $CFG->closingtags ?? ''; // Fix for MDL-79276, if null then set fallback to empty string.
} finally {
ob_end_clean();
}
Expand Down

0 comments on commit b2531b2

Please sign in to comment.