]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-21007 FakeDBUnitTestCase unit tests now reported as exceptions
authorEloy Lafuente <stronk7@moodle.org>
Mon, 30 Nov 2009 21:36:28 +0000 (21:36 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Mon, 30 Nov 2009 21:36:28 +0000 (21:36 +0000)
lib/simpletestlib/test_case.php

index 61cac9f5ab501d63e2b5f70e9cf5d5c17cebbe43..350168c3c84b2793db700e7ba618e1eb6c944e5b 100644 (file)
@@ -598,7 +598,8 @@ class TestSuite {
                 // moodle hack start - need to do this before the constructor call, because of FakeDBUnitTestCase.
                 global $CFG;
                 if (is_subclass_of($class, 'FakeDBUnitTestCase')) {
-                    // Do not execute this test because the test tables system no longer works.
+                    // Do not execute this test because the test tables system no longer works, reporting it as exception
+                    $reporter->paintError("Unit test \"{$class}\" of type FakeDBUnitTestCase no longer supported. Must be migrated to UnitTestCaseUsingDatabase.");
                     continue;
                 }
                 if (is_subclass_of($class, 'UnitTestCaseUsingDatabase') && empty($CFG->unittestprefix)) {