mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'MDL-46778-master' of git://github.com/odeialba/moodle
This commit is contained in:
commit
c467ce725e
7 changed files with 51 additions and 12 deletions
|
@ -141,6 +141,16 @@ if (defined('BEHAT_SITE_RUNNING')) {
|
|||
$CFG->wwwroot = $CFG->behat_wwwroot;
|
||||
$CFG->prefix = $CFG->behat_prefix;
|
||||
$CFG->dataroot = $CFG->behat_dataroot;
|
||||
|
||||
// And we do the same with the optional ones.
|
||||
$allowedconfigoverride = ['dbname', 'dbuser', 'dbpass', 'dbhost'];
|
||||
foreach ($allowedconfigoverride as $config) {
|
||||
$behatconfig = 'behat_' . $config;
|
||||
if (!isset($CFG->$behatconfig)) {
|
||||
continue;
|
||||
}
|
||||
$CFG->$config = $CFG->$behatconfig;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue