Merge branch 'MDL-37046_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Dan Poltawski 2013-01-29 13:25:13 +08:00
commit e0f755035b

View File

@ -145,6 +145,12 @@ class tool_behat_testcase extends advanced_testcase {
public function test_config_file_contents() {
global $CFG;
// Skip tests if behat is not installed.
$vendorpath = $CFG->dirroot . '/vendor';
if (!file_exists($vendorpath . '/autoload.php') || !is_dir($vendorpath . '/behat')) {
$this->markTestSkipped('Behat not installed.');
}
// To avoid user value at config.php level.
unset($CFG->behat_config);