From 05fd5c4d3401c57cd7ad491f8ba3ee0966575c9c Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 25 Aug 2016 16:04:42 +0100 Subject: [PATCH] MDL-55072 tests: work around reset bug --- admin/tool/behat/tests/manager_util_test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/tool/behat/tests/manager_util_test.php b/admin/tool/behat/tests/manager_util_test.php index f4d26bfe76c..2f5980653fd 100644 --- a/admin/tool/behat/tests/manager_util_test.php +++ b/admin/tool/behat/tests/manager_util_test.php @@ -359,6 +359,8 @@ class tool_behat_manager_util_testcase extends advanced_testcase { global $CFG; // This is a hack so directory name is correctly detected in tests. + //FIXME: MDL-55722 work out why this is necessary.. + $oldroot = $CFG->dirroot; $CFG->dirroot = 'C:'; $behatconfigutil = $this->behatconfigutil; @@ -374,6 +376,8 @@ class tool_behat_manager_util_testcase extends advanced_testcase { $this->assertEquals($key, $retkey); $this->assertEquals($cleanfeaturepath, $retcleanfeaturepath); + //FIXME: MDL-55722 work out why this is necessary.. + $CFG->dirroot = $oldroot; } public function clean_features_path_list() {