Override datetime.time service instead.
Change \Drupal\Tests\canvas\Kernel\Traits\PredictableImageStyleItokTestTrait instead of the replacements dance:
- Consistent with
ClientDataToEntityConverterTestandAutoSaveManagerTestin terms of overriding thedatetime.timeservice. - Consistent with multiple other kernel tests on only replacing
::SITE_DIR_BASE_URL:: - Future-proof if we need to test other endpoints allowing image uploads (we need
\Drupal\Tests\canvas\Kernel\Traits\PredictableImageStyleItokTestTraitanyway). - IMHO readability, but that's subjective.
Testing instructions
- Tests are green
Closes #3587922