Configuration - "Test Email" tab not functional, throws error.
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3337920. -->
Reported by: [no sssweat](https://www.drupal.org/user/2535824)
Related to !4
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When you go to <code>/admin/config/system/elastic_email/test</code></p>
<blockquote><p>TypeError: Drupal\elastic_email\Plugin\Mail\ElasticEmailMailSystem::__construct(): Argument #1 ($messenger) must be of type Drupal\Core\Messenger\MessengerInterface, array given, called in /app/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php on line 25 in Drupal\elastic_email\Plugin\Mail\ElasticEmailMailSystem->__construct() (line 93 of modules/contrib/elastic_email/src/Plugin/Mail/ElasticEmailMailSystem.php).</p></blockquote>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Go to <code>/admin/config/system/elastic_email/test</code></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Since it's a plugin, use the <code>ContainerFactoryPluginInterface</code> instead of <del><code>ContainerInjectionInterface</code></del></p>
issue