From: skodak Date: Sat, 10 Jan 2009 14:13:34 +0000 (+0000) Subject: MDL-17843 - db unit tests are now always included again; lang string not needed anymore X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=efd8c7fc6bd8ca012b9c6b7d29e4b4410ed23bf4;p=moodle.git MDL-17843 - db unit tests are now always included again; lang string not needed anymore --- diff --git a/admin/report/unittest/index.php b/admin/report/unittest/index.php index f8ccc9386c..5aae637eff 100644 --- a/admin/report/unittest/index.php +++ b/admin/report/unittest/index.php @@ -20,7 +20,6 @@ require_once('ex_reporter.php'); $path = optional_param('path', null, PARAM_PATH); $showpasses = optional_param('showpasses', false, PARAM_BOOL); $showsearch = optional_param('showsearch', false, PARAM_BOOL); -$rundbtests = optional_param('rundbtests', false, PARAM_BOOL); $addconfigprefix = optional_param('addconfigprefix', false, PARAM_RAW); $setuptesttables = optional_param('setuptesttables', false, PARAM_BOOL); $upgradetesttables = optional_param('upgradetesttables', false, PARAM_BOOL); @@ -201,8 +200,6 @@ if (!is_null($path)) { // keep in CVS, but which is not really relevant. It does no harm // to leave this here. $test->addIgnoreFolder($CFG->dirroot . '/_nonproject'); - $test->addIgnoreFolder($CFG->libdir . '/ddl'); - $test->addIgnoreFolder($CFG->libdir . '/dml'); // Make the reporter, which is what displays the results. $reporter = new ExHtmlReporter($showpasses); @@ -231,16 +228,6 @@ if (!is_null($path)) { $ok = false; } - // Add ddl and dml tests if requested - if ($rundbtests) { - if (!strstr($path, $CFG->libdir . '/ddl')) { - $test->addTestFile($CFG->libdir . '/ddl/simpletest/testddl.php'); - } - if (!strstr($path, $CFG->libdir . '/dml')) { - $test->addTestFile($CFG->libdir . '/dml/simpletest/testdml.php'); - } - } - // If we have something to test, do it. if ($ok) { if ($path == $CFG->dirroot) { @@ -268,7 +255,6 @@ echo '

'; echo ' '; echo ''; echo '

'; -echo '

'; print_checkbox('rundbtests', 1, $rundbtests, get_string('rundbtests', $langfile)); echo '

'; // TODO: localise echo ''; echo ''; echo ''; diff --git a/lang/en_utf8/simpletest.php b/lang/en_utf8/simpletest.php index a0db5f7723..57ebef927f 100644 --- a/lang/en_utf8/simpletest.php +++ b/lang/en_utf8/simpletest.php @@ -26,7 +26,6 @@ $string['retest'] = 'Re-run the tests'; $string['retestonlythisfile'] = 'Re-run only this test file.'; $string['runall'] = 'Run the tests from all the test files.'; $string['runat'] = 'Run at $a.'; -$string['rundbtests'] = 'Run the database tests too.'; $string['runonlyfile'] = 'Run only the tests in this file'; $string['runonlyfolder'] = 'Run only the tests in this folder'; $string['runtests'] = 'Run tests';