Create PredictableImageStyleItokTestTrait
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3581622. --> Reported by: [penyaskito](https://www.drupal.org/user/959536) Related to !869 >>> <h3 id="overview">Overview</h3> <p>If you look for </p> <pre>// Fixate the private key &amp; hash salt to get predictable `itok`.</pre><p>in the tests codebase you will find at least 4 occurrences.</p> <p>We should move that to a trait.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Create a <code>PredictableImageStyleItokTestTrait</code> for our KernelTests to use, with a method <code>setupPredicatableItok()</code>. Replace all duplicated code with a trait usage and call.</p> <h3 id="ui-changes">User interface changes</h3> <p>None, just test changes.</p>
issue