Modify unit tests to declare expected output

This commit is contained in:
Qihui Chan
2022-12-20 10:26:11 +10:00
parent b9cbf015ac
commit 9473db8c6e
4 changed files with 32 additions and 9 deletions

View File

@@ -422,9 +422,6 @@ EOT;
* @param outage|null $outage Outage or null if no scheduled outage.
*/
private static function maintenance_config_log(outage $outage) {
// Not output logging info in php unit test.
if (PHPUNIT_TEST) return;
mtrace(get_string('logformaintmodeconfig', 'auth_outage'));
$timezone = ' (Timezone ' . \core_date::get_server_timezone_object()->getName() . ')';
mtrace('... updated at ' . date('H:i:s'));