MDL-14905 towards functional DB tests
This commit is contained in:
@@ -118,7 +118,7 @@ echo '<p>External databases are configured in config.php, add lines:
|
||||
$CFG->func_test_db_1 = array("adodb", "postgres7", "localhost", "moodleuser", "password", "moodle", false, "test", null);
|
||||
$CFG->func_test_db_2 = array("adodb", "mssql", "localhost", "moodleuser", "password", "moodle", false, "test", null);
|
||||
</pre>
|
||||
where order of parameters is: $library, $driver, $dbhost, $dbuser, $dbpass, $dbname, $dbpersist, $prefix, $dboptions
|
||||
where order of parameters is: dblibrary, dbtype, dbhost, dbuser, dbpass, dbname, dbpersist, prefix, dboptions
|
||||
</p>';
|
||||
echo '<p><input type="submit" value="' . get_string('runtests', 'simpletest') . '" /></p>';
|
||||
echo '</div>';
|
||||
|
||||
@@ -92,9 +92,6 @@ if (!is_null($path)) {
|
||||
$title = get_string('moodleunittests', $langfile, $displaypath);
|
||||
}
|
||||
print_heading($title);
|
||||
/* The UNITTEST constant can be checked elsewhere if you need to know
|
||||
* when your code is being run as part of a unit test. */
|
||||
define('UNITTEST', true);
|
||||
$test->run($reporter);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,4 +7,4 @@ if ($reportname[1] == '[') {
|
||||
$ADMIN->add('reports', new admin_externalpage('reportsimpletest', $reportname, "$CFG->wwwroot/$CFG->admin/report/simpletest/index.php",'moodle/site:config'));
|
||||
|
||||
//TODO: localise
|
||||
$ADMIN->add('reports', new admin_externalpage('reportdbtest', 'Functional DB tests', "$CFG->wwwroot/$CFG->admin/report/simpletest/dbtest.php",'moodle/site:config', true));
|
||||
$ADMIN->add('reports', new admin_externalpage('reportdbtest', 'Functional DB tests', "$CFG->wwwroot/$CFG->admin/report/simpletest/dbtest.php",'moodle/site:config'));
|
||||
|
||||
Reference in New Issue
Block a user