MDL-17767 loginas internals refactoring - code moved to sessionlib.php

This commit is contained in:
skodak
2009-01-02 14:53:02 +00:00
parent 8d1964c4f8
commit 542797b4e8
10 changed files with 43 additions and 19 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ class completionlib_test extends MoodleUnitTestCase {
global $DB,$CFG,$SESSION,$USER;
$this->realdb=$DB;
$this->realcfg=$CFG;
$this->realuser=$USER;
$this->prevuser=$USER;
$DB=new mock_database();
$CFG=clone($this->realcfg);
$CFG->prefix='test_';
@@ -108,7 +108,7 @@ class completionlib_test extends MoodleUnitTestCase {
$DB=$this->realdb;
$CFG=$this->realcfg;
$SESSION=$this->realsession;
$USER=$this->realuser;
$USER=$this->prevuser;
}
function test_is_enabled() {