Commit Graph

11 Commits

Author SHA1 Message Date
Mike Jolley
0d6fe6e5eb Apply rules to tests and tasks 2024-03-21 16:57:59 +01:00
Rodrigo Primo
afe378ba22 Replace expect()->equals() with verify()->equals()
codeception/verify 2.1 removed support for expect()->equals() so we need
to replace it with verify()->equals().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rostislav Wolny
f56b58a5fe Fix warnings and errors in integration tests
[PREMIUM-191]
2023-09-22 16:20:11 +02:00
John Oleksowicz
c75bc388c9 Remove unnecessary cleanup code
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Jan Jakes
82aeb89854 Use strict types in tests
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
7db40b27b5 Fix errors automatically with phpcbf
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
Rodrigo Primo
f547eea48b Small refactor to move duplicated code to a private method in AutomatedEmailsTest
[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
2df41bdf63 Replace remaining Paris code from AutomatedEmailsTest with Doctrine code
[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
bddf8a7e4c Replace old Newsletter model with Doctrine entity in AutomatedEmailsTest
I'm doing as part of the ticket to replace other models as it will make
replacing MailPoet\Models\StatisticsClicks and
MailPoet\Models\StatisticsOpens in AutomatedEmailsTest easier.

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rostislav Wolny
68cb5c4f79 Inject MailerFactory instead of mailer
We can't create mailer directly in DI container using the factory because it may fail in case
the plugin is not configured properly and prevent plugin from start.

The Mailer was previously injected because it contains lazy initialization.
The lazy initialization in the singleton Mailer service was dangerous,
because when used with some custom parameters it could cause that all services
that inject the Mailer from DI would use the custom config instead the default.
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00