Remove unnecessary module install in kernel tests
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3529732. --> Reported by: [narendrar](https://www.drupal.org/user/1730192) Related to !148 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai_agents/issues/3529355" title="Status: Closed (fixed)">#3529355: Write Kernelt tests for all tools</a></span> added Kernel tests for this module. But if modules are defined in <code>protected static $modules </code>, they need not to be explicitly installed in <code>protected function setUp()</code>.</p> <p>So basically remove <code>$this-&gt;container-&gt;get('module_installer')-&gt;install(self::$modules);</code> from <code>protected function setUp()</code></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3529355](https://www.drupal.org/node/3529355)
issue