Unit test did not preserve session

This commit is contained in:
David Mudrak 2010-03-21 19:44:57 +00:00
parent 2ab686ee71
commit e16f75bde3

View File

@ -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);