Drupal 11 support, fix PHPUnit tests
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3573108. --> Reported by: [ekes](https://www.drupal.org/user/10083) Related to !7 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <pre>Major - \Drupal calls should be avoided in classes, use dependency injection instead<br>in modules/localgov_forms_lts/src/Drush/Commands/LocalgovFormsLtsCommands.php:49<br><br>Major - Class Drupal\localgov_forms\Element\AddressLookupElement extends deprecated class Drupal\Core\Render\Element\FormElement: in drupal:10.3.0 and is removed from drupal:12.0.0. use \Drupal\Core\Render\Element\FormElementBase instead.<br>in src/Element/AddressLookupElement.php:14<br><br>Major - \Drupal calls should be avoided in classes, use dependency injection instead<br>in src/Plugin/WebformElement/UKAddressLookup.php:98</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p><a href="https://git.drupalcode.org/project/localgov_forms/-/pipelines/682201/codequality_report">https://git.drupalcode.org/project/localgov_forms/-/pipelines/682201/codequality_report</a></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Fix them.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3>
issue