mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-55741 phpunit: does not reset get_log_manager cache
This commit is contained in:
parent
35d5053ba2
commit
972a367b98
@ -266,6 +266,9 @@ class phpunit_util extends testing_util {
|
||||
// Make sure the time locale is consistent - that is Australian English.
|
||||
setlocale(LC_TIME, $localename);
|
||||
|
||||
// Reset the log manager cache.
|
||||
get_log_manager(true);
|
||||
|
||||
// verify db writes just in case something goes wrong in reset
|
||||
if (self::$lastdbwrites != $DB->perf_get_writes()) {
|
||||
error_log('Unexpected DB writes in phpunit_util::reset_all_data()');
|
||||
|
Loading…
x
Reference in New Issue
Block a user