mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-39441 behat: New setting to expand the list of allowed settings
This commit is contained in:
parent
f38e22ed91
commit
401f60d576
2 changed files with 10 additions and 0 deletions
|
@ -160,6 +160,11 @@ function behat_clean_init_config() {
|
|||
'theme'
|
||||
));
|
||||
|
||||
// Add extra allowed settings.
|
||||
if (!empty($CFG->behat_extraallowedsettings)) {
|
||||
$allowed = array_merge($allowed, array_flip($CFG->behat_extraallowedsettings));
|
||||
}
|
||||
|
||||
// Also allowing behat_ prefixed attributes.
|
||||
foreach ($CFG as $key => $value) {
|
||||
if (!isset($allowed[$key]) && strpos($key, 'behat_') !== 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue