Jan Jakes
ef8d7bf264
Remove automation hiding logic
...
This was introduced in:
https://github.com/mailpoet/mailpoet/pull/4917
https://github.com/mailpoet/mailpoet/pull/5171
[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Lysý
41a55262fe
Fix PHPStan warnings in tests
...
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Jan Jakes
24dfd5c4c7
Fix deprecation error for pages hidden in menu
...
[MAILPOET-5718]
2023-11-23 10:50:33 +01:00
Pavel Dohnal
b60da9faf6
Make sure offset is always number
...
We want to prevent an error 'Unsupported operand types: string * int'
[MAILPOET-5676]
2023-10-24 16:12:24 +02: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
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
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
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
Rostislav Wolny
c84c3da07f
Update integration tests
...
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Jan Jakes
2a676353aa
Render "after_javascript" block after other scripts
...
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Brezo Cordero
c12438db08
Add filter to remove restriction on Woo Express
...
[MAILPOET-5573]
2023-09-25 07:02:19 -07:00
Rostislav Wolny
f56b58a5fe
Fix warnings and errors in integration tests
...
[PREMIUM-191]
2023-09-22 16:20:11 +02:00
John Oleksowicz
000cb5e6d5
Add limit to mailpoet_archive shortcode
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
John Oleksowicz
aa480a8c66
Add ability to display last n days of newsletters
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
John Oleksowicz
ec71b44648
Add ability to filter mailpoet_archive by subject
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
John Oleksowicz
a0c1a137d6
Update mailpoet_archive to accept date params
...
MAILPOET-5574
2023-09-11 13:49:57 +02:00
Jan Jakes
af1ad22377
Remove no longer needed menu hiding logic
...
This is now determined by whether the parent is "null" or not.
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Brezo Cordero
a154d2581b
Fix event tracking and simplify isBundledSubscription
...
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
6b40dfabf3
Hide Automations menu for bundles
...
Using null instead of true so that the pages are available directly.
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
c5bc51fc86
Add function to check if MP subscription is bundled
...
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
bcee2abb2c
Improve translations error handling
...
Use wp_json_encode in case files contain invalid UTF-8 characters and catch WP_Errors when fetching the translations.
[MAILPOET-5253]
2023-05-03 12:46:07 +02:00
Jan Jakes
70e6447e28
Extract WPFunctions reset to test bootstrap
...
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
Rostislav Wolny
cbd5c443f2
Ensure that subscriber stats are sent even for valid underprivileged keys
...
[MAILPOET-5165]
2023-04-04 18:45:41 +02:00
Rodrigo Primo
5b5b7856c6
Use DI container to get an instance of Menu to simplify MenuTest
...
By using the DI container to get an instance of Menu we simplify
MenuTest and avoid the need to change MenuTest::getMenu() every time the
signature of the constructor of the Menu class changes, which will
happen in a subsequent commit.
[MAILPOET-4815]
2022-12-19 21:37:42 +01:00
Rostislav Wolny
2bbc1b7063
Add homepage page and submenu item hidden behind feature flag
...
[MAILPOET-4824]
2022-11-30 11:42:41 +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
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
Jan Jakes
725e0ecb00
Remove automation feature flag
...
[MAILPOET-4788]
2022-11-14 12:35:29 +02:00
Jan Jakes
96368cbd3f
Move one-time migrations from populator to the new initial migration
...
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
9730fb9272
Move the old dbDelta-based migrator to a migration
...
This will ensure it runs once and from there, it will continue using the new migrations.
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
ccb5369c57
Use https everywhere for www.mailpoet.com
...
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
Jan Lysý
c1ac9f7922
Add test case on notifications during shutdown
...
[MAILPOET-4727]
2022-10-27 09:31:40 +02:00
Jan Jakes
7ce53adc33
Use static premium download URL instead of fetching it from bridge
...
This was causing HTTP requests to bridge on each page load for some of MP admin pages.
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Rodrigo Primo
d874375c25
Remove MP2 migration main class and its test class
...
This commit removes the main MP2 migration class and its test class. It
also removes two SQL files that were used in the test class. One of
those files executed the following query:
`SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"`
Removing this query made the tests inside SubscriberSegmentTest fail
when running the whole integration test suite. To work around this, I
added the above mentioned query to SubscriberSegmentTest. I'm not sure
why this test class fails without this query when running all the tests
but it doesn't when it is executed alone. Probably there is another test
class changing the SQL_MODE. Since SubscriberSegmentTest is a test class
for a Paris model that we will eventually remove, I decided it was not
necessary to investigate this further.
[MAILPOET-4376]
2022-08-15 12:46:22 +02:00
Rodrigo Primo
c30fe1305b
Replace Paris models with Doctrine entities in Shortcodes
...
It was necessary to deprecate the filter
mailpoet_archive_email_subject and create a new one since the type
of one of the parameters passed to the filter had to change.
[MAILPOET-4307]
2022-08-01 09:57:10 +02:00
Rodrigo Primo
351c4ca565
Replace Paris models with Doctrine entities in ShortcodesTest
...
[MAILPOET-4307]
2022-08-01 09:57:10 +02:00
Sam Najian
a65bbb6904
Remove model usages from ShortCodesTest
...
[MAILPOET-4361]
2022-07-18 16:47:48 +02:00
David Remer
29dffe542e
Fix testItUsesCorrectAssetsManifestFilenames test
...
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
David Remer
a46514605e
Fix tests
...
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00