mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-47806' of github.com:mr-russ/moodle
This commit is contained in:
commit
888d0822bd
@ -3718,6 +3718,12 @@ class core_renderer_cli extends core_renderer {
|
||||
}
|
||||
return "!! $message !!\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* There is no footer for a cli request, however we must override the
|
||||
* footer method to prevent the default footer.
|
||||
*/
|
||||
public function footer() {}
|
||||
}
|
||||
|
||||
|
||||
|
@ -647,6 +647,13 @@ class core_moodle_page_testcase extends advanced_testcase {
|
||||
$PAGE = $oldpage;
|
||||
$OUTPUT = $oldoutput;
|
||||
}
|
||||
|
||||
public function test_render_to_cli() {
|
||||
global $OUTPUT;
|
||||
|
||||
$footer = $OUTPUT->footer();
|
||||
$this->assertEmpty($footer, 'cli output does not have a footer.');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user