MDL-32569 always set $CFG->wwwroot to http://www.example.com/moodle in test environment

This commit is contained in:
Petr Skoda 2012-04-22 17:23:20 +02:00
parent d88b0f9c29
commit fb8e3faba2

View File

@ -145,6 +145,7 @@ if (isset($CFG->prefix) and $CFG->prefix === $CFG->phpunit_prefix) {
}
// override CFG settings if necessary and throw away extra CFG settings
$CFG->wwwroot = 'http://www.example.com/moodle';
$CFG->dataroot = $CFG->phpunit_dataroot;
$CFG->prefix = $CFG->phpunit_prefix;
$CFG->dbtype = isset($CFG->phpunit_dbtype) ? $CFG->phpunit_dbtype : $CFG->dbtype;