Commit Graph

24 Commits

Author SHA1 Message Date
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
5ce9008f90 Fix PHPStan class-string errors
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
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ý
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
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
Jan Lysý
65948c8033 Add mock esc_html into unit test bootstrap
[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
Jan Lysý
d0c8cde59c Migrate tests/unit folder to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
d0f8d6f83e Migrate tests/unit/Integrations folder to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
906e80a6d7 Migrate tests/unit/Engine folder to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
113dbaae2d Change coding style in email editor tests to WordPress
This commit contains automated changes made with phpcbf command from CodeSniffer package.

[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
fc7e06730b Migrate email editor dom document helper class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
c83ec3c8d7 Migrate email editor settings-controller to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
fba5482cd2 Migrate email editor theme-controller to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
b6103b4581 Rename files in email editor package by WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Rostislav Wolny
3f6ca7517a Fix unit tests and potential ensure email_attrs being set
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
c2ef0ac2ea Remove EMAIL_WIDTH constant from SettingsController
Email width is set in theme JSON so this was a duplicity.
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Jan Lysý
99a6541ffb Fix namespace in unit tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
4424a33624 Add Container class
This class is used as DI Container for easier injecting classes in integration tests.
It can be also reused during a standalone usage.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
d38e6bb1b9 Bootstrap email-editor unit tests
I also replaced using verify function by asserts, which will be removed in the higher version of phpunit.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
0860f7c45f Move email editor unit tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00