MDL-48670 behat: Set timezone to Australia/perth

Behat tests might rely on time related tests
Ensure we have default timezone set to Australia/Perth
This commit is contained in:
Rajesh Taneja
2015-02-13 08:12:42 +08:00
parent 201f5085c6
commit 21e8f813dc
+5
View File
@@ -133,6 +133,11 @@ if (defined('BEHAT_SITE_RUNNING')) {
}
}
// Force timezone to be Australia/Perth for behat tests, so we don't get time zone problems.
if (defined('BEHAT_SITE_RUNNING') || defined('BEHAT_TEST') || defined('BEHAT_UTIL')) {
@date_default_timezone_set('Australia/Perth');
}
// Normalise dataroot - we do not want any symbolic links, trailing / or any other weirdness there
if (!isset($CFG->dataroot)) {
if (isset($_SERVER['REMOTE_ADDR'])) {