Rodrigo Primo
8bc4d78c68
Replace expect()->regExp() with verify()->stringMatchesRegExp()
...
codeception/verify 2.1 removed support for expect()->regExp() so we need
to replace it with verify()->stringMatchesRegExp().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
2ced2b4afa
Replace expect()->lessThan() with verify()->lessThan()
...
codeception/verify 2.1 removed support for expect()->lessThan() so we need
to replace it with verify()->lessThan().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
a54e1f3c01
Replace expect()->greaterOrEquals() with verify()->greaterThanOrEqual()
...
codeception/verify 2.1 removed support for expect()->greaterOrEquals() so we need
to replace it with verify()->greaterThanOrEqual().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
c1c59fe392
Replace expect()->lessOrEquals() with verify()->lessThanOrEqual()
...
codeception/verify 2.1 removed support for expect()->lessOrEquals() so we need
to replace it with verify()->lessThanOrEqual().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
e4f0b89032
Replace expect()->contains() with verify()->arrayContains()
...
codeception/verify 2.1 removed support for expect()->contains() so we need
to replace it with verify()->arrayContains().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
4bc4e9b254
Replace expect()->startsWith() with verify()->stringStartsWith()
...
codeception/verify 2.1 removed support for expect()->startsWith() so we need
to replace it with verify()->stringStartsWith().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
a1f57361c5
Replace expect()->array() with verify()->isArray()
...
codeception/verify 2.1 removed support for expect()->array() so we need
to replace it with verify()->isArray().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
c41e5c7d0f
Replace expect()->hasNotKey() with verify()->arrayHasNotKey()
...
codeception/verify 2.1 removed support for expect()->hasNotKey() so we need
to replace it with verify()->arrayHasNotKey().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
525495409c
Replace expect()->notNull() with verify()->notNull()
...
codeception/verify 2.1 removed support for expect()->notNull() so we need
to replace it with verify()->notNull().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
9b56fdc688
Replace expect()->count() with verify()->arrayCount()
...
codeception/verify 2.1 removed support for expect()->count() so we need
to replace it with verify()->arrayCount().
[MAILPOET-5664]
2023-10-24 08:58:22 +03: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
5bc5b5ebd2
Replace expect()->notEmpty() with verify()->notEmpty()
...
codeception/verify 2.1 removed support for expect()->notEmpty() so we need
to replace it with verify()->notEmpty().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
5d839277d6
Replace expect()->same() with verify()->same()
...
codeception/verify 2.1 removed support for expect()->same() so we need
to replace it with verify()->same().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
a70067a34c
Replace expect()->hasKey() with verify()->arrayHasKey()
...
codeception/verify 2.1 removed support for expect()->hasKey() so we need
to replace it with verify()->arrayHasKey().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
eba025a345
Replace expect()->stringNotContainsString() with verify()->stringNotContainsString()
...
codeception/verify 2.1 removed support for expect()->stringNotContainsString() so we need
to replace it with verify()->stringNotContainsString().
[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
709be1d541
Replace expect()->null() with verify()->null()
...
codeception/verify 2.1 removed support for expect()->null() so we need
to replace it with verify()->null().
[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
Jan Lysý
abcfdebcf6
Add integration test for Coupon API endpoint
...
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Rostislav Wolny
f56b58a5fe
Fix warnings and errors in integration tests
...
[PREMIUM-191]
2023-09-22 16:20:11 +02:00
Rostislav Wolny
3ff4ba0c86
Delete WP Posts when deleting Newsletter Entities
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Jan Lysý
577a82ca49
Add bulk action for removing tag from subscribers
...
[MAILPOET-5454]
2023-07-13 13:12:56 +02:00
Jan Lysý
aa12fd57d7
Add bulk action for tagging subscribers
...
[MAILPOET-5454]
2023-07-13 13:12:56 +02:00
Rostislav Wolny
8bf7a150e2
Report subscribers count before refreshing key statuses from the shop
...
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
cd5a023b35
Move onSettingsChange from Bridge service to SettingsChangeHandler
...
Bridge is a low level service that processes requests and responses to/from Bridge API.
This change is needed so that we can remove dependency on MailPoet\Util\License\Features\Subscribers
service from the Bridge. The dependecy is a higher level service and may easily cause a circular dependency issue.
The SettingsChangeHandler is service for handling side effects
when saving settings. This feels as a better place to put the functionality.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
6c2cda36b0
Run custom field data through sanitizer when saving via API
...
[MAILPOET-5241]
2023-04-24 13:26:31 +02:00
John Oleksowicz
e7f766aedf
Remove empty _afters
...
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
376dca1098
Remove unnecessary truncating
...
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
cd0b795ac8
Extract customer creation/cleanup
...
This also ensures that cleanup always runs after all integration tests
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
Brezo Cordero
685af267cb
Use constant, improve test and naming
...
[MAILPOET-5131]
2023-04-03 12:57:31 +02:00
Brezo Cordero
c0eed5b919
Integration tests for provisioning
...
[MAILPOET-5131]
2023-04-03 12:57:31 +02:00
Sam Najian
0795c2ffff
Expose the log for corrupted newsletter on listing page
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Rodrigo Primo
678911a8bc
Fix PHPStan baseline errors in a few integration test files
...
[MAILPOET-4037]
2023-02-23 14:13:17 +01:00
David Remer
623010a644
Use dataprovider and clean up early
...
[MAILPOET-4883]
2023-02-15 12:30:41 +01:00
David Remer
95ec3d2fb9
Add integration test to ensure posts are probperly fetched
...
[MAILPEOT-4883]
2023-02-15 12:30:41 +01:00
Rodrigo Primo
ad4247a241
Add API endpoint to delete a setting
...
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
Jan Lysý
40f4216ff8
Add method for getting WC coupons
...
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
David Remer
5802f2132d
Use badRequest method instead of throwing an InvalidState exception
...
[PREMIUM-213]
2022-12-16 14:11:34 +01:00
David Remer
8e502e5f50
Rename save method to create
...
[PREMIUM-213]
2022-12-16 14:11:34 +01:00
David Remer
8457aa7e2b
Remove ToDo comments
...
[PREMIUM-213]
2022-12-16 14:11:34 +01:00
David Remer
5b93b88f46
Add Tags endpoint
...
[PREMIUM-213]
2022-12-16 14:11:34 +01:00
Oluwaseun Olorunsola
c4bd2acd84
Update tests
...
MAILPOET-4649
2022-12-15 18:15:01 +01: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
David Remer
d2ec7bba42
Replace instance_of asserts in integration tests
...
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
David Remer
4832771185
Refactor the captcha system
...
The current Captcha class has a lot of responsibilities. It renders the captcha
image, can check if a certain captcha type is a Google captcha, if a captcha is
required for a certain email. The SubscriberSubscribeController is not only in
charge of "controlling" the subscription process but also validates, whether a
captcha is correct or not. This architecture made it difficult to extend the
functionality and introduce the audio captcha feature.
Therefore this commit refactors the captcha architecture and tries to seperate
the different concerns into several classes and objects. Validation is now done
by validators.
The CaptchaPhrase now is in charge of keeping the captcha phrase consistent
between the image and the new audio, so that you can renew the captcha and both
captchas are in sync.
[MAILPOET-4514]
2022-11-24 09:20:39 +01:00