]> git.mjollnir.org Git - moodle.git/commitdiff
Unit tests: Change the parent class to avoid a deprecated class.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 24 Nov 2009 21:44:59 +0000 (21:44 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 24 Nov 2009 21:44:59 +0000 (21:44 +0000)
This is necessary to make it work in PHP 5.3 (as well as PHP 4).

admin/report/unittest/ex_simple_test.php

index 8dd2825cddb55ad905792558ff14965e34ff0548..5f979b0a2a81c919dab20531e54563db1c6f5872 100644 (file)
@@ -21,12 +21,12 @@ require_once($CFG->libdir . '/simpletestlib/test_case.php');
  * them into a group test.
  * @package SimpleTestEx
  */
-class AutoGroupTest extends GroupTest {
+class AutoGroupTest extends TestSuite {
 
     var $showsearch;
 
     function AutoGroupTest($showsearch, $test_name = null) {
-        $this->GroupTest($test_name);
+        $this->TestSuite($test_name);
         $this->showsearch = $showsearch;
     }