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

This commit is contained in:
Eloy Lafuente (stronk7)
2011-10-07 01:24:18 +02:00
parent 9086337415
commit a7f99cf02e
+1 -1
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;