-
Bug
-
Resolution: Fixed
-
Minor
-
2.7.3, 2.8.1
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
wip-mdl-48670
-
Easy
-
In /course/tests/behat/course_controls.feature and /course/tests/behat/paged_course_navigation.feature, the scenario expects a "1 January - 7 January" link, being the 1st week of the course.
But the course is created with a startdate value of 0 (=> 31/12/1969), so the 1st week is "31 December - 6 January", so the scenarios don't work.
And that, because the timezone in our php.ini was set to "America/New_York". Setting it to "Europe/London" solved the problem.
Maybe a specific function should be added in the Behat Data Generator, to create courses with correct start dates?