MDL-74988 core: reset times for entire filearea in upgrade test.
commit53c88025456d79527e9368aeed1167db944625be
authorPaul Holden <paulh@moodle.com>
Thu, 16 Jun 2022 09:36:51 +0000 (16 10:36 +0100)
committerPaul Holden <paulh@moodle.com>
Thu, 16 Jun 2022 09:50:06 +0000 (16 10:50 +0100)
tree9109e355f6941dda41045c894ddd7fed33f07c13
parentca583bddaf6e5ef231ee357a68b1aa37a4464ed0
MDL-74988 core: reset times for entire filearea in upgrade test.

The previous code was resetting timestamps for only the file itself,
which could lead to it having an earlier time than the root entry of
it's filearea.

This caused sporadic test failures when the current time ticked over
by a second during execution.
lib/tests/upgradelib_test.php