Commit Graph

37 Commits

Author SHA1 Message Date
Jan Lysý
fc03639aff Add using List-Unsubscribe-Post header to PHPMailerMethod
[MAILPOET-5983]
2024-04-08 11:12:59 +02:00
Mike Jolley
0d6fe6e5eb Apply rules to tests and tasks 2024-03-21 16:57:59 +01:00
Brezo Cordero
4a0ed51c8c Reduce API calls to verify sender domain during sending
and call checkAuthorizedEmailAddresses on bulk email sending error.

[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
fb406350a5 Map ERROR_MESSAGE_BULK_EMAIL_FORBIDDEN
Create a soft error to not block sending.

[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Rodrigo Primo
e4136fee8c Replace expect()->isEmpty() with verify()->empty()
codeception/verify 2.1 removed support for expect()->isEmpty() so we need
to replace it with verify()->empty().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
1865fc8930 Replace expect()->isInstanceOf() with verify()->instanceOf()
codeception/verify 2.1 removed support for expect()->isInstanceOf() so we need
to replace it with verify()->instanceOf().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
0d2f6e0776 Replace expect()->stringContainsString() with verify()->stringContainsString()
codeception/verify 2.1 removed support for expect()->stringContainsString() so we need
to replace it with verify()->stringContainsString().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
997f635d4a Replace expect()->false() with verify()->false()
codeception/verify 2.1 removed support for expect()->false() so we need
to replace it with verify()->false().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
9adbf81a78 Replace expect()->true() with verify()->true()
codeception/verify 2.1 removed support for expect()->true() so we need
to replace it with verify()->true().

[MAILPOET-5664]
2023-10-24 08:58:22 +03: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
 Ján Mikláš
41af23f2b9 Change email address in Sendgrid test
[MAILPOET-5412]
2023-06-20 10:21:32 +02:00
Rostislav Wolny
4995ed93f0 Refactor invalidation of MSS key to non static method
This is the olny staically called method from the service. In this commit I refactored it to non-static so that it works properly with injected services.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Jan Jakes
66259fc9b6 Reintroduce AWS SES sending error test with actual SES response
[MAILPOET-5190]
2023-04-04 06:47:26 +02:00
John Oleksowicz
72c18782cc Simplify and move test to more appropriate spot
MAILPOET-5190
2023-04-04 06:47:26 +02:00
Rodrigo Primo
678911a8bc Fix PHPStan baseline errors in a few integration test files
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
Jan Lysý
2e97cb6924 Fix tests after last changes
[MAILPOET-4639]
2023-01-16 13:46:07 +01:00
Jan Jakes
82aeb89854 Use strict types in tests
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
b6a37f274c Fix Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
Sam Najian
8a19fd906f Update test to check for distinct one-click urls in bulk
[MAILPOET-4703]
2022-11-11 09:21:30 +01:00
Sam Najian
765aa6efab Augment tests to acknowledge oneclick unsubscribe url
[MAILPOET-4703]
2022-11-11 09:21:30 +01:00
Sam Najian
903bcbb92e Update tests and adapt to the new unsubscribe key structure
[MAILPOET-4702]
2022-11-09 12:36:44 +01:00
Sam Najian
8d6492ac8c Adjust constructor injections of instantiators of MailPoet
[MAILPOET-4702]
2022-11-09 12:36:44 +01:00
Jan Jakes
ccb5369c57 Use https everywhere for www.mailpoet.com
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
Jan Lysý
8567614697 Add integration test with SMTP filters
[MAILPOET-4437]
2022-08-22 13:16:51 +02:00
Sam Najian
372a7fb307 Refrain from skipping AmazonSESTest::testItCanSend since it's mocked
[MAILPOET-4394]
2022-06-20 09:24:49 +02:00
Sam Najian
fcea764d91 Mock WPFunctions::wpRemotePost when testing AmazonSES
We don't want to send a real request to AmazonSES when
testing it since we don't want to send a real email.

[MAILPOET-4394]
2022-06-20 09:24:49 +02:00
Jan Lysý
978afcdc1c Fix condition for authentication
[MAILPOET-4398]
2022-06-06 11:16:07 +02:00
Rostislav Wolny
681effc526 Temporarily removing test that sends emails to AWS
We need to prevent sending from CI so that we are not blocked on AWS. We will revert
this commit when we find a proper fix.
[MAILPOET-4394]
2022-05-26 18:43:35 +02:00
Jan Lysý
00fe1eb1c4 Replace transport hook with a new smpt_options
[MAILPOET-4142]
2022-05-23 11:38:32 +02:00
Jan Lysý
0186ddee35 Replace Swift_message with PHPMailer
[MAILPOET-4142]
2022-05-23 11:38:32 +02:00
Jan Lysý
670e6e4cba Replace Swift Mailer for PHPMailer
[MAILPOET-4142]
2022-05-23 11:38:32 +02:00
Jan Lysý
1dd2c82634 Load PHPMailer
We don't support old loading for WordPress 5.5 and lower
[MAILPOET-4142]
2022-05-23 11:38:32 +02:00
Rostislav Wolny
36edab34e6 Move logic for return path fallback address from method classes to factory
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Jan Lysý
ed87d1cace Fix format for List-Unsubscribe header
[MAILPOET-4235]
2022-04-11 09:22:22 +02:00
Jan Lysý
eced7d27cd Update dependencies in tests
[MAILPOET-4047]
2022-03-01 10:58:31 +01:00
John Oleksowicz
f46c3c2a76 Replace mailinator with blackhole
Deliverability is not important in any of these tests, so it should be
safer and more reliable to use blackhole@mailpoet.com instead of the old
 mailinator address, which was used before the blackhole@mailpoet.com
 address existed.

[MAILPOET-4064]
2022-01-19 08:21:17 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00