Fix broken tests on main
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3583444. -->
Reported by: [feyp](https://www.drupal.org/user/998680)
Related to !6
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>We fixed the build on main in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/menu_entity_index/-/work_items/3582348" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/menu_entity_index/-/work_items/3582348</a></span>, but the tests on main are currently still broken. Fix them in a backward-compatible way.</p>
issue