Commit Graph

44 Commits

Author SHA1 Message Date
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
David Remer
ea2e42592f Fix some tests
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
David Remer
2f18032141 Fix Renderer in tests
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
David Remer
047040b0ed Prevent Google fonts from loading when they are disabled
[MAILPOET-4247]
2022-06-06 10:54:12 +02:00
Jan Jakes
d9c47a40f2 Add permissions to manage automations
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
Rostislav Wolny
00b0723f96 Refactor logic for detection of translations installed from .org
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
db14f851a1 Prevent installing translations from .org if they are available on .com
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
a21e31ca2d Make sure translations from .org are replaced by translations from .com
When the plugin is initially installed it may download translations from .org.
The translations from .org may have a newer date then translations from .com, but are incomplete.
This change ensures that translations installed from .org are always replaced by translations from .com.
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Jan Lysý
6f020342c1 Add integration test for TranslationUpdater
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Jakes
9dc2809462 Add automation page
[MAILPOET-4135]
2022-02-21 09:56:26 +01:00
Rostislav Wolný
ac73ed0e4d Revert "Add integration test for TranslationUpdater"
This reverts commit d5a1d85ef4.
2022-02-16 12:49:35 +01:00
Jan Lysý
d5a1d85ef4 Add integration test for TranslationUpdater
[MAILPOET-3808]
2022-02-14 11:53:32 +01:00
Sam NAjian
b35006433d Use only an instance of NewsletterShortcodes class when rendering archiveSubject
- Based on how the NewsletterShortcodes service is implemented it's safer to instanciate
it inside the user method and not inject it in the class contructor
- Revert back the changes added to MailPoet\Newsletter\Shortcodes\Categories\Subscriber::process
[MAILPOET-4069]
2022-02-09 16:31:14 +01:00
Sam NAjian
43ecd4369b Add subscriber details to the to the archive subject in case subscriber is defined
[MAILPOET-4069]
2022-02-09 16:31:14 +01:00
Rostislav Wolny
1630da0917 Add processing of shortcode in subject in archive page
[MAILPOET-3965]
2022-02-09 16:31:14 +01:00
John Oleksowicz
82a6fb8ac7 Refactor migrator to be a DI service
[MAILPOET-4061]
2022-02-07 14:37:08 +01:00
Rostislav Wolny
dc55aaa566 Add email actions filters format migration
[MAILPOET-3951]
2022-01-19 16:18:08 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00