Unit tests MDL-24842: Fixed error in previous UnitTestCaseDatabase change
authorSam Marshall <s.marshall@open.ac.uk>
Mon, 1 Nov 2010 11:14:34 +0000 (11:14 +0000)
committerSam Marshall <s.marshall@open.ac.uk>
Mon, 1 Nov 2010 11:14:34 +0000 (11:14 +0000)
lib/simpletestlib.php

index 553abea..33a1975 100644 (file)
@@ -538,7 +538,7 @@ class UnitTestCaseUsingDatabase extends UnitTestCase {
      * have, display a rude message and clean it up for them.
      */
     private function automatic_clean_up() {
-        global $DB;
+        global $DB, $CFG;
         $cleanmore = false;
 
         // Drop any test tables that were created.