Skip to content

Commit

Permalink
MDL-17843 - db unit tests are now always included again; lang string …
Browse files Browse the repository at this point in the history
…not needed anymore
  • Loading branch information
skodak committed Jan 10, 2009
1 parent dbff568 commit efd8c7f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions admin/report/unittest/index.php
Expand Up @@ -20,7 +20,6 @@
$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);
Expand Down Expand Up @@ -201,8 +200,6 @@
// 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);
Expand Down Expand Up @@ -231,16 +228,6 @@
$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) {
Expand Down Expand Up @@ -268,7 +255,6 @@
echo '<label for="path">', get_string('onlytest', $langfile), '</label> ';
echo '<input type="text" id="path" name="path" value="', $displaypath, '" size="40" />';
echo '</p>';
echo '<p>'; print_checkbox('rundbtests', 1, $rundbtests, get_string('rundbtests', $langfile)); echo '</p>'; // TODO: localise
echo '<input type="submit" value="' . get_string('runtests', $langfile) . '" />';
echo '</fieldset>';
echo '</form>';
Expand Down
1 change: 0 additions & 1 deletion lang/en_utf8/simpletest.php
Expand Up @@ -26,7 +26,6 @@
$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';
Expand Down

0 comments on commit efd8c7f

Please sign in to comment.