Rostislav Wolny
b2c17fcdf4
Fix formatting and add return type hints to buttons related tests
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
70273c626d
Add Button renderer test
...
This commit adds a button renderer test and fixes a couple of issues
found when working on the test
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
d54847ce83
Refactor construction of NewsletterEntity when creating an email in the new editor
...
When we create a new email in the new editor we ensure there is
also an associated NewsletterEntity.
This commit improves this functionality by replacing custom code with
NewsletterSaveController, which ensures that the sender name and address are set.
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Jan Lysý
efd9abcf76
Skip width style setting in blocks paragraph and heading
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
1331e7e257
Extend block paragraph integration test
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
67a2e92d8c
Add image block integration test
...
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Oluwaseun Olorunsola
4f412282e6
Add tests for Heading Block Renderer
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Jan Lysý
81e079ceab
Unify used assert function in test class
...
[MAILPOET-5690]
2023-11-13 06:58:52 +01:00
Jan Lysý
e7e569e3ee
Extend column block integration test about vertical-alignment
...
[MAILPOET-5690]
2023-11-13 06:58:52 +01:00
Jan Lysý
d60004da2a
Add ListBlock integration test
...
As a part of this commit is a new method validating HTML. I moved it to the bootstrap to avoid repetition in the future.
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Jan Lysý
5644cab9e3
Refactor BlocksRegistry to pass dependencies as an argument
...
For better extensibility of 3rd party developers, I refactored to pass Settings Controller as an argument.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
3cb9891235
Add integration Paragraph test
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
6cadd1273a
Add integration Column test
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
180f06f1a8
Update integration Columns test
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
2ce6fd8688
Remove BlocksRenderer and fix tests
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
0ac72d43e6
Merge StylesController to SettingsController
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Rodrigo Primo
fa9236d8c9
Replace expect()->greaterThan() with verify()->greaterThan()
...
codeception/verify 2.1 removed support for expect()->greaterThan() so we need
to replace it with verify()->greaterThan().
[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
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
af32b36af2
Initialize editor hooks only if the new editor feature is active
...
[MAILPOET-5624]
2023-10-09 11:33:11 +02:00
Jan Lysý
51223ac3c2
Add saving and getting subject and preheader to EmailApiController
...
[MAILPOET-5562]
2023-10-02 10:28:26 +02:00
Rostislav Wolny
398a313d54
Pass styles controller into block renders
...
When rendering blocks, we need to access global styles settings.
This will be done via the StylesController
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
b70ad064c7
Refactor initialization of the email editor
...
This changes how the editor is initialized. The integration initialization class
doesn't get the engine class anymore, but integration is initialized via
mailpoet_email_editor_initialized action triggered from the engine.
This allows multiple integrations to hook into the engine.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
68e833f80c
Refactor email editor PHP and JS code to follow automations namespacing
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
e6e20e3159
Save association to WP post with newsletter
...
This commit adds a simple implementation of ensuring the mailpoet_email post type
has associated NewsletterEntity.
In the future we will need to add support also for saving additional data for
newsletters (subject, sending settings).
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00