Remove config from localgov_media_test_config for Drupal 10.x
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3571108. --> Reported by: [finn lewis](https://www.drupal.org/user/119432) Related to !8 >>> <p>Following conversation on Slack with @stephen-cox...</p> <p>The tests in localgov_directories (and other places) when running in Drupal 11 fail unless we require the localgov_media_test_config int he phpunit test to ensure dependent configuration is present.</p> <p>We can see here, most of the tests pass in Drupal 11<br> <a href="https://git.drupalcode.org/project/localgov_directories/-/jobs/8253926">https://git.drupalcode.org/project/localgov_directories/-/jobs/8253926</a></p> <p>But the same code in Drupal 10 fails on multiple accounts, as the configuration is already present.<br> <a href="https://git.drupalcode.org/project/localgov_directories/-/jobs/8253927">https://git.drupalcode.org/project/localgov_directories/-/jobs/8253927</a></p> <p>I am still unclear as to why the config dependency tree installs differently on Drupal 11 in functional tests. It seems to be unrelated to the Kernel dependency changes from 11.3 <a href="https://www.drupal.org/node/3539877">https://www.drupal.org/node/3539877</a></p> <p>So, the proposed solution here is to make that module config/install folder empty on the Drupal 10 branch and full on the Drupal 11 branch, allowing tests to declare it as a dependency, but only install the configuration on the 3.x branch for Drupal 11.3 +.</p>
issue