Set the correct target_core in all phpunit variants
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3413110. -->
Reported by: [jonathan1055](https://www.drupal.org/user/92645)
Related to !103
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When testing using OPT_IN_TEST_PREVIOUS_MAJOR the composer step redefines the variable <code>_TARGET_CORE: $CORE_PREVIOUS_STABLE</code> which is good, it works fine. The phpunit job confirms via drush status that it is running <code>Drupal version : 9.5.11</code></p>
<p>However, if you do a conditional test in after_script based on the variable _TARGET_CORE is <i>does not</i> retain 9.5.11 and has the standard value which is currenty 10.2.x-dev </p>
<h3>Cause</h3>
<p>composer (previous major): has</p>
<pre> variables:<br> _TARGET_PHP: $CORE_PREVIOUS_PHP_MIN<br> _TARGET_CORE: $CORE_PREVIOUS_STABLE</pre><p>But phpunit (previous major) only has</p>
<pre> variables:<br> _TARGET_PHP: $CORE_PREVIOUS_PHP_MIN</pre><p>(thanks to fjgarlin for this hint, when I asked on Slack)</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add the missing variables to all the phpunt variants </p>
issue