]> git.mjollnir.org Git - moodle.git/commitdiff
unit tests: MDL-17803 test Db instatiate being called from two places, which was...
authortjhunt <tjhunt>
Wed, 7 Jan 2009 08:59:13 +0000 (08:59 +0000)
committertjhunt <tjhunt>
Wed, 7 Jan 2009 08:59:13 +0000 (08:59 +0000)
lib/simpletestlib.php

index f85f3bf45e229e3225958050a9fe388a3d2119c6..4e09e66eca1d18d66444b7f4649cf97eddf41628 100644 (file)
@@ -244,7 +244,6 @@ class MoodleUnitTestCase extends UnitTestCase {
      */
     public function setUp() {
         parent::setUp();
-        UnitTestDB::instantiate();
         global $DB;
         $this->DB =& $DB;
         ob_start();
@@ -348,7 +347,6 @@ class UnitTestDB {
     public static function instantiate() {
         global $CFG, $DB;
         UnitTestDB::$real_db = clone($DB);
-
         if (empty($CFG->unittestprefix)) {
             print_error("prefixnotset", 'simpletest');
         }