Commit Graph

16 Commits

Author SHA1 Message Date
Mike Jolley
0d6fe6e5eb Apply rules to tests and tasks 2024-03-21 16:57:59 +01:00
Rostislav Wolny
f56b58a5fe Fix warnings and errors in integration tests
[PREMIUM-191]
2023-09-22 16:20:11 +02:00
John Oleksowicz
376dca1098 Remove unnecessary truncating
MAILPOET-5145
2023-04-07 12:11:12 -05: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
Rostislav Wolny
20577d974f Replace custom createSubscriber method with common factory method
[MAILPOET-4860]
2022-11-25 17:17:48 +01:00
Rostislav Wolny
7369465a3a Add subscribers cleanup to stats notification worker test
The test creates subscribers and there was not cleanup so this was increasing
probability of conflict in subscribers email.
[MAILPOET-4860]
2022-11-25 17:17:48 +01:00
Sam Najian
193b4cbf98 Set missing unsubscribe method for failing tests
[MAILPOET-4733]
2022-11-25 14:51:57 +01:00
David Remer
d2ec7bba42 Replace instance_of asserts in integration tests
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Rodrigo Primo
026aa684a5 Replace Paris models with Doctrine entities in WorkerTest
[MAILPOET-4379]
2022-07-27 08:48:15 +02:00
Rodrigo Primo
5f0f28a5c2 Remove unused import
[MAILPOET-4379]
2022-07-27 08:48:15 +02:00
Rodrigo Primo
394353781d Replace Paris models with Doctrine code in WorkerTest.php
This commit replaces the models StatisticsClicks and StatisticsOpens

[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 Lysý
4a0534ac2a Remove deprecated upgrade link
[MAILPOET-4183]
2022-04-11 15:26:39 +02:00
Rodrigo Primo
6aae62505d Update stats notification email preheader to display clicks before opens
[MAILPOET-3324]
2022-02-09 15:07:41 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00