mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-72085 core_phpunit: reset session notifications
This commit is contained in:
parent
dc437b5171
commit
0fc73ee581
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user