MDL-37046 behat: Adding switch environment feature

This commit is contained in:
David Monllao
2013-01-29 08:40:35 +08:00
parent 7f541ea3ed
commit cc5446464e
4 changed files with 135 additions and 14 deletions
+2
View File
@@ -92,6 +92,8 @@ if (!isset($CFG->wwwroot) or $CFG->wwwroot === 'http://example.com/moodle') {
// If acceptance testing mode is enabled use test database and dataroot
if (file_exists($CFG->dataroot . '/behat/test_environment_enabled.txt')) {
$CFG->passwordsaltmain = 'phpunit';
$CFG->originaldataroot = $CFG->dataroot;
$CFG->prefix = $CFG->phpunit_prefix;
$CFG->dataroot = $CFG->phpunit_dataroot;
}