mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-51077 Availability: Date restriction unit test static not cleared
This commit is contained in:
parent
dda862abb5
commit
89a73b0815
@ -216,6 +216,11 @@ class phpunit_util extends testing_util {
|
||||
filter_manager::reset_caches();
|
||||
core_filetypes::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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user