- Issue created by @davidwbarratt
- Status changed to Closed: duplicate
10 months ago 12:28am 13 February 2024 - πΊπΈUnited States smustgrave
Having to do that over in π Add gitlab file and address findings Active to address phpstan findings.
The Drupal\azure_mailer\Plugin\Mail\AzureMailer
class uses the container directly instead of having its dependencies injected into the class. This makes it difficult to write a test for this class.
The class could instead impalement Drupal\Core\Plugin\ContainerFactoryPluginInterface
which would allow the dependencies to be injected. This would make it significantly easier to write a test for this class.
Closed: duplicate
1.0
Code
Having to do that over in π Add gitlab file and address findings Active to address phpstan findings.