-
Bug
-
Resolution: Fixed
-
Blocker
-
4.4
-
MOODLE_404_STABLE
-
MOODLE_404_STABLE
-
MDL-80838-main -
-
2
-
Team Hedgehog 2024 Sprint 1.2, Team Hedgehog 2024 Sprint 1.3
This issue proposes pulling PSR-20 (clock) into core, creating a Moodle-specific extension of this (\core\clock interface), and implementing this as \core\system_clock with unit-test clock implementations for:
- \incrementing_clock
- \frozen_clock
Furthermore updating the data generators to use \core\di rather than an instance cache, which thus allows for injection of the clock (and other) classes.
The DI container is already reset between unit tests.
It may also be possible to then make use of these data generators in behat tests too.
- blocks
-
MDL-80960 Create SMS API skeleton and gateway plugin type
- Closed
-
MDL-81392 Create data generators using DI
- Open
- is blocked by
-
MDL-80072 Move format_* methods into new \core\formatting class and prep for new WS
- Closed
- Testing discovered
-
MDL-80848 Forum code does not handle things happening at the same time well
- Open
- will help resolve
-
MDL-37327 Add function to moodlelib.php to get the current time to allow it to be changed for unit tests.
- Closed
- links to