Merge branch 'MDL-47806' of github.com:mr-russ/moodle

This commit is contained in:
Damyon Wiese 2014-11-04 14:34:43 +08:00
commit 888d0822bd
2 changed files with 13 additions and 0 deletions

View File

@ -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() {}
}

View File

@ -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.');
}
}
/**