MDL-72085 core_phpunit: reset session notifications
This commit is contained in:
@@ -203,6 +203,9 @@ class phpunit_util extends testing_util {
|
||||
$ME = null;
|
||||
$SCRIPT = null;
|
||||
$FILTERLIB_PRIVATE = null;
|
||||
if (!empty($SESSION->notifications)) {
|
||||
$SESSION->notifications = [];
|
||||
}
|
||||
|
||||
// Empty sessison and set fresh new not-logged-in user.
|
||||
\core\session\manager::init_empty_session();
|
||||
|
||||
Reference in New Issue
Block a user