-
Bug
-
Resolution: Fixed
-
Minor
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-66575-master -
- Set your system clock to September 1st
- Run the feature 'mod/assign/tests/behat/relative_dates.feature' 10 times and confirm there are no failures.
Missed one.
For the relative enrolment "First day of current month", this could clash with the current time if the current date is the first day of the current month.
What we really want to test in this behat test is the 2 extremes: the user who started a long time ago and doesn't have access any more and the user who started recently, who does have access. To fix all problems with datetime clashes, it's probably better to just use something like 'yesterday' for the current student's enrolment start.
- has been marked as being related by
-
MDL-66558 Relative dates: behat test edge case failure
-
- Closed
-