mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Unit test did not preserve session
This commit is contained in:
parent
2ab686ee71
commit
e16f75bde3
@ -96,6 +96,7 @@ class completionlib_test extends UnitTestCase {
|
||||
global $DB,$CFG,$SESSION,$USER;
|
||||
$this->realdb=$DB;
|
||||
$this->realcfg=$CFG;
|
||||
$this->realsession=$SESSION;
|
||||
$this->prevuser=$USER;
|
||||
$DB=new mock_database();
|
||||
$CFG=clone($this->realcfg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user