Merge branch 'MDL-55741_30' of git://github.com/timhunt/moodle into MOODLE_30_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2016-08-29 14:08:54 +02:00
+3
View File
@@ -265,6 +265,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()');