mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
103a4b5c92
Data providers are executed at the beginning of the execution of the phpunit run, not when the test is run. So, setting anything on them being dependent of current time has high chances or fail when the test is executed (maybe some hours later in slow databases / systems). Data provider only can contain the relative values and then, when the test is effectively run, they are applied to *current* time.