Ensure timestamps are predictable to avoid flaky phpunit tests
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3562563. -->
Reported by: [penyaskito](https://www.drupal.org/user/959536)
Related to !436
>>>
<h3 id="overview">Overview</h3>
<p>I think this is only on mariadb, there's two random failures:</p>
<pre>Drupal\Tests\canvas\Kernel\Entity\JavascriptComponentAccessTest::testAccess<br>Failed asserting that two arrays are identical.<br>--- Expected<br>+++ Actual<br>@@ @@<br> Array &0 [<br> 'canvas_page' => Array &1 [<br>- 1 => '1',<br> 2 => '1',<br> 3 => '1',<br>+ 1 => '1',<br> ],<br> ]<br><br>/builds/project/canvas/tests/src/Kernel/Entity/JavascriptComponentAccessTest.php:146</pre><pre>Drupal\Tests\canvas\Functional\ApiUiContentTemplateControllersTest::testSuggestPreviewContentEntities<br>Failed asserting that two arrays are identical.<br>--- Expected<br>+++ Actual<br>@@ @@<br> Array &0 [<br>- 3 => Array &1 [<br>+ 6 => Array &1 [<br>+ 'id' => '6',<br>+ 'label' => 'Entity LAST',<br>+ ],<br>+ 3 => Array &2 [<br> 'id' => '3',<br> 'label' => 'Updated article',<br>- ],<br>- 6 => Array &2 [<br>- 'id' => '6',<br>- 'label' => 'Entity LAST',<br> ],<br> 1 => Array &3 [<br> 'id' => '1',<br><br>/builds/project/canvas/tests/src/Functional/ApiUiContentTemplateControllersTest.php:817</pre><h3 id="proposed-resolution">Proposed resolution</h3>
<h3 id="ui-changes">User interface changes</h3>
> Related issue: [Issue #3571997](https://www.drupal.org/node/3571997)
issue