Oluwaseun Olorunsola
5d6d7eba57
Add template integration tests
...
MAILPOET-6043
2024-12-02 14:21:54 +01:00
Oluwaseun Olorunsola
b49970e26e
Simplify GitHub workflow config for PHPStan
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
6df51455d2
Fix PHPStan errors
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
ccc3f9ab28
Ensure phpstan exit code is passed along to the shell window and address some pr comments
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
b1cc53ec5b
Update comments and fix code style warnings
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
5ce9008f90
Fix PHPStan class-string errors
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
0ac7a1ee02
Fix Bootstrap file IntegrationTesterActions.php does not exist.
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
6066fd6321
Automatically fix fixable code style lint errors
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
325c4c74f4
Fix PHPStan errors for Email editor PHP package integration test folder
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
a4ad960492
Fix PHPStan errors for Email editor PHP package unit test folder
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
bb71448c53
Fix PHPStan errors for Email editor PHP package src folder
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
40aac9e65c
Use email editor custom config for phpstan
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Oluwaseun Olorunsola
30c4b5687f
Add phpstan command and script to Email editor PHP package
...
MAILPOET-6318
2024-12-02 08:44:22 +01:00
Jan Lysý
9b0880c0ef
Refactor HTML_Tag_Processor_Test integration test
...
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Jan Lysý
1c20730817
Improve comments across Personalization Tags classes
...
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Jan Lysý
f95688ca70
Add new class Personalization_Tag
...
The new class contains all necessary data to replace token with personalized value.
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Jan Lysý
829905a0f5
Move Personalizer to a different namespace
...
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Jan Lysý
7aad021735
Add Personalization Tags support for title
...
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Jan Lysý
a761799c61
Add new class Personalizer managing tags replacement
...
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Jan Lysý
806e960190
Add new class extending WP_HTML_Tag_Processor
...
The new class allows replacing tokens which is necessary for Personalization Tags implementation.
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Jan Lysý
aab08fa5ab
Add personalization-tag-registry class
...
The new class which allows register Personalization Tags and then read them.
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Rostislav Wolny
5bbdc41679
Add forward compatibility for template-locked mode
...
The setting was added in https://github.com/WordPress/gutenberg/pull/62304
and is needed with the newest Gutenberg version.
[MAILPOET-6319]
2024-11-26 16:44:11 +01:00
Rostislav Wolny
beb2994a71
Fix php8.2 deprecation warnings in email editor integration tests
...
[MAILPOET-6244]
2024-11-22 17:40:25 +01:00
Rostislav Wolny
bbbc21a5d5
Update email-editor unit tests
...
We need to require autoload manually because codeception is no longer part of the package
[MAILPOET-6244]
2024-11-22 17:40:25 +01:00
Rostislav Wolny
51510216cc
Remove codeception from email-editor package
...
[MAILPOET-6244]
2024-11-22 17:40:25 +01:00
Rostislav Wolny
e74e1ef2a2
Register email patterns directly in plugin
...
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
5885077838
Register only email content email pattern category
...
As for now, pattern categories are hardcoded in the engine.
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
927a5e9464
Add checks for invalid data for patterns and categories
...
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
b52304179e
Remove Cdn_Asset_Url class
...
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
b8147ed810
Remove pattern definitions from the editor package
...
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
c06779acbb
Introduce hooks for registering patterns for email editor
...
To get rid of hardcoded MailPoet-specific patterns from the editor package
We need to introduce an API to register the patterns and their categories.
Patterns have to be defined as extenders of Abstract_Pattern.
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Pavel Dohnal
a59c93f811
Update templates version
...
[MAILPOET-6043]
2024-11-20 09:48:56 +01:00
Pavel Dohnal
d68e1c7960
Add Renderer class tests
...
[MAILPOET-6043]
2024-11-20 09:48:56 +01:00
Pavel Dohnal
97729b21ae
Add Content Renderer test for blocks rendering
...
[MAILPOET-6043]
2024-11-20 09:48:56 +01:00
Rostislav Wolny
bee6d3a8aa
Document test commands for editor package in readme.md
...
[MAILPOET-6317]
2024-11-19 15:34:00 +01:00
Oluwaseun Olorunsola
58f1af7920
Move Send_Preview_Email class to Engine folder and update tests
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
5969e3438e
Add and update tests for Send preview email
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
af29753c53
Move email preview filter method to email editor class. This fixes an issue with the method invocation
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
71a59f9f06
Add filter method to override email editor send preview mail functionality
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
d83c179f5c
Fix code lint style errors
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
a9c2c3ca1d
Add basic email sending support with wp_mail
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
ee967015dc
Add Send_Preview_Email class for MailPoet email editor
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
87676ccdb6
Add base route for sending preview email
...
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Jan Lysý
0d94f42452
Fix typo in CodeSniffer config
...
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
9d65e2dbe8
Deactivate the rule about file_get_contents
...
I temporarily deactivated the rule because the change can be more complex.
WP_Filesystem cannot be used because we load files in constructors.
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
65948c8033
Add mock esc_html into unit test bootstrap
...
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
853bf6fcfe
Migrate integration tests in Integrations directory to WordPress Coding Standard
...
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
e69666776d
Migrate integration tests in Engine directory to WordPress Coding Standard
...
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
0c781be938
Migrate integration tests bootstrap file to WordPress Coding Standard
...
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
c6f6eeef53
Add excluded rule for tests to avoid repetition
...
Our tests use method _after and _before, so we would need to add ignore to each usage.
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00