MDL-86452 core: Reset navigation data between tests

This commit is contained in:
Andrew Nicols
2025-08-28 13:13:05 +08:00
parent 5764f8ee38
commit 303b8a4bc1
4 changed files with 39 additions and 0 deletions
+1
View File
@@ -205,6 +205,7 @@ class phpunit_util extends testing_util {
// reinitialise following globals
$OUTPUT = new bootstrap_renderer();
$PAGE = new moodle_page();
\navigation_node::reset_all_data();
$FULLME = null;
$ME = null;
$SCRIPT = null;