MDL-51077 Availability: Date restriction unit test static not cleared

This commit is contained in:
sam marshall
2015-08-14 10:54:00 +01:00
parent 7da2ed7a24
commit f69d98df43
+6
View File
@@ -202,6 +202,12 @@ class phpunit_util extends testing_util {
core_text::reset_caches();
get_message_processors(false, true);
filter_manager::reset_caches();
// Reset static unit test options.
if (class_exists('\availability_date\condition', false)) {
\availability_date\condition::set_current_time_for_test(0);
}
// Reset internal users.
core_user::reset_internal_users();