MDL-29677 unit tests - missing global was causing tons of incorrect debugging info

This commit is contained in:
Eloy Lafuente (stronk7) 2011-10-06 01:19:43 +02:00
parent 9086337415
commit a7f99cf02e

View File

@ -67,7 +67,7 @@ class moodle_page_test extends UnitTestCase {
}
public function tearDown() {
global $COURSE;
global $COURSE, $PAGE;
$this->testpage = NULL;
$COURSE = $this->originalcourse;
$PAGE = $this->originalpage;