MDL-41592 behat: Allow alt wwwroot to be set for acceptance testing

To set add $CFG->behat_wwwroot = 'http://alturl'; in your config.php
This commit is contained in:
Aaron Barnes
2013-12-02 14:20:04 +08:00
committed by David Monllao
parent 3dc57a1203
commit 2d68ba169d
3 changed files with 24 additions and 19 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ class behat_command {
// We don't check the PHP version if $CFG->behat_switchcompletely has been enabled.
// Here we are in CLI.
if (empty($CFG->behat_switchcompletely) && $checkphp && version_compare(PHP_VERSION, '5.4.0', '<')) {
if (empty($CFG->behat_switchcompletely) && empty($CFG->behat_wwwroot) && $checkphp && version_compare(PHP_VERSION, '5.4.0', '<')) {
behat_error(BEHAT_EXITCODE_REQUIREMENT, 'PHP 5.4 is required. See config-dist.php for possible alternatives');
}