Commit Graph

27 Commits

Author SHA1 Message Date
Jan Jakes
1c41fe81b1 Fix side effect in shortcodes test
[MAILPOET-5359]
2024-07-09 09:03:18 +02:00
Jan Jakes
ce94e24fb1 Fix rendering of special characters using [site:name] shortcode
[MAILPOET-5359]
2024-07-08 14:45:41 +02:00
Mike Jolley
0d6fe6e5eb Apply rules to tests and tasks 2024-03-21 16:57:59 +01:00
Jan Lysý
aba54c5116 Fix ampersand character rendered by newsletter:post_title shortcode
[MAILPOET-5724]
2024-02-22 10:00:38 +01:00
Jan Lysý
41a55262fe Fix PHPStan warnings in tests
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Rodrigo Primo
8bc4d78c68 Replace expect()->regExp() with verify()->stringMatchesRegExp()
codeception/verify 2.1 removed support for expect()->regExp() so we need
to replace it with verify()->stringMatchesRegExp().

[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
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
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
Jan Lysý
631f71957c Add support default value for subscriber's custom fields shortcode
[MAILPOET-5463]
2023-07-14 13:26:10 +02: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
Jan Lysý
ddca94891d Unify rendering site:homepate_link shortcode with value from helper
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Lysý
6b3fc309cc Add new shortcode [site:homepage_url]
[MAILPOET-4936]
2023-01-30 14:39:35 +01:00
Jan Jakes
82aeb89854 Use strict types in tests
[MAILPOET-2688]
2022-11-29 15:04:09 +01: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
Oluwaseun Olorunsola
a7c1d8431d Update tests for [subscriber:count] shortcode
MAILPOET-4527
2022-11-21 12:36:12 +01:00
Oluwaseun Olorunsola
63e797ba37 Add more tests for new site shortcodes
MAILPOET-4599
2022-11-01 14:59:28 +01:00
Rodrigo Primo
2f6dc17228 Replace Paris models with Doctrine entities ShortcodesTest
[MAILPOET-4379]
2022-07-27 08:48:15 +02:00
Sam Najian
bd3b4f1e93 Remove Newsletter model usages
[MAILPOET-4361]
2022-07-18 16:47:48 +02:00
David Remer
eda969dd72 Fix action_argument_value of shortcode will be string if empty
[MAILPOET-4151]
2022-02-21 10:26:22 +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
Rostislav Wolny
5842fc0ad6 Add processing of shortcode in subject in archive page
[MAILPOET-3965]
2022-02-09 16:31:14 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00