Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
401f60d5
Commit
401f60d5
authored
Jul 15, 2013
by
David Monllao
Browse files
MDL-39441 behat: New setting to expand the list of allowed settings
parent
f38e22ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
config-dist.php
View file @
401f60d5
...
...
@@ -631,6 +631,11 @@ $CFG->admin = 'admin';
// Example:
// $CFG->behat_restart_browser_after = 7200; // Restarts the browser session after 2 hours
//
// All this page's extra Moodle settings are compared against a white list of allowed settings
// (the basic and behat_* ones) to avoid problems with production environments. This setting can be
// used to expand the default white list with an array of extra settings.
// Example:
// $CFG->behat_extraallowedsettings = array('logsql', 'dblogerror');
//=========================================================================
// ALL DONE! To continue installation, visit your main page with a browser
...
...
lib/behat/lib.php
View file @
401f60d5
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment