From a7f99cf02ee9ed0374a86a1f22da114e1edc01b2 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 6 Oct 2011 01:19:43 +0200 Subject: [PATCH] MDL-29677 unit tests - missing global was causing tons of incorrect debugging info --- lib/simpletest/testpagelib_moodlepage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simpletest/testpagelib_moodlepage.php b/lib/simpletest/testpagelib_moodlepage.php index 2c66b454610..ccaf2876597 100644 --- a/lib/simpletest/testpagelib_moodlepage.php +++ b/lib/simpletest/testpagelib_moodlepage.php @@ -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;