From: skodak Date: Fri, 13 Jun 2008 08:41:29 +0000 (+0000) Subject: MDL-14905 towards functional DB tests X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cc55f4f62449446278b0639f660bf9c85159dd2b;p=moodle.git MDL-14905 towards functional DB tests --- diff --git a/admin/report/simpletest/dbtest.php b/admin/report/simpletest/dbtest.php index ac3bb689b3..b123cea95f 100644 --- a/admin/report/simpletest/dbtest.php +++ b/admin/report/simpletest/dbtest.php @@ -118,7 +118,7 @@ echo '

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); -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

'; echo '

'; echo ''; diff --git a/admin/report/simpletest/index.php b/admin/report/simpletest/index.php index a03628b8e4..b3ce593dd2 100644 --- a/admin/report/simpletest/index.php +++ b/admin/report/simpletest/index.php @@ -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); } diff --git a/admin/report/simpletest/settings.php b/admin/report/simpletest/settings.php index 7c8c3f90e6..437a2788d4 100644 --- a/admin/report/simpletest/settings.php +++ b/admin/report/simpletest/settings.php @@ -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'));