Commit Graph

137 Commits

Author SHA1 Message Date
Mike Jolley
0d6fe6e5eb Apply rules to tests and tasks 2024-03-21 16:57:59 +01:00
Jan Jakes
4e42c39486 Add test for tags & categories backfilling
[PREMIUM-253]
2024-03-18 13:36:08 +01:00
Jan Jakes
c3e4264d4d Add test for order date fields backfilling
[PREMIUM-253]
2024-03-18 13:36:08 +01:00
Jan Jakes
cad1e9e8a1 Add test for order stats fields backfilling
[PREMIUM-253]
2024-03-18 13:36:08 +01:00
Jan Jakes
593d227d8e Add test for billing & shipping info backfilling
[PREMIUM-253]
2024-03-18 13:36:08 +01:00
Jan Jakes
eaee987048 Implement cart total field
[MAILPOET-5934]
2024-03-14 11:09:12 +01:00
Jan Jakes
b5b21c9f7a Add check for product post type when fetching customer review data
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
5439db1e5a Unify parameter naming
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
1a0eb90402 Mark which fields support the "in the last" parameter for UI
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
5b2d75dc1f Add "in the last" parameter to "woocommerce:customer:purchased-tags" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
176b2dbd53 Add "in the last" parameter to "woocommerce:customer:purchased-categories" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
399e61d7b9 Add "in the last" parameter to "woocommerce:customer:review-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
67786c1eee Add "in the last" parameter to "mailpoet:subscriber:automations-exited" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
44b65d10be Add "in the last" parameter to "mailpoet:subscriber:automations-processing" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
2ef7bf6fac Add "in the last" parameter to "mailpoet:subscriber:automations-entered" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
f36b117987 Add "in the last" parameter to "mailpoet:subscriber:email-clicked-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
1c7ed9602f Add "in the last" parameter to "mailpoet:subscriber:email-machine-opened-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
c87fc5ab7e Add "in the last" parameter to "mailpoet:subscriber:email-opened-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
2421a1b8ea Add "in the last" parameter to "mailpoet:subscriber:email-sent-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
3dbe1bd049 Add "in the last" parameter to "woocommerce:customer:spent-average" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
adff3b61a6 Add "in the last" parameter to "woocommerce:customer:order-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Jakes
d9be326aa7 Add "in the last" parameter to "woocommerce:customer:spent-total" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
Jan Lysý
9ab347080b Create customers to avoid failing tests
[MAILPOET-5909]
2024-02-16 08:29:27 +01:00
Jan Jakes
8b40553d0b Do not check subscriber against segment when sending transactional email
[MAILPOET-5720]
2024-02-14 14:36:22 +01:00
Rostislav Wolny
0eb531f675 Fix comment fields test
Adding a WpPostEntity caused a side effect that the cleanup extension
for integration tests started processing also the post table
and removed the post the test was relying on.

This commit fixes the issue by creating the post for the test within the test.

[MAILPOET-5813]
2024-01-08 11:33:18 -06:00
Jan Lysý
41a55262fe Fix PHPStan warnings in tests
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
David Remer
4b2a63e8d6 Use - instead of _ in field keys
[PREMIUM-243]
2023-11-08 13:42:36 +01:00
David Remer
042daf934e Add NewsletterLinkSubject
[PREMIUM-243]
2023-11-08 13:42:36 +01:00
David Remer
ae0e952159 Use the correct WordPress wrapper
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
1d885ea238 Add order created|cancelled|completed triggers
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
d4ea49d09a Move OrderStatusChangeTrigger into own namespace
[MAILPOET-5661]
2023-11-06 12:57:56 +01:00
David Remer
694be68f4a Add post ID to comment
[MAILPOET-5687]
2023-10-31 15:08:49 +01:00
David Remer
73d7a0963a Add product post type
[MAILPOET-5687]
2023-10-31 15:08:49 +01:00
David Remer
48ade93b6e Add tests for post and comment fields
[PREMIUM-248]
2023-10-30 21:22:23 +01: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
Jan Jakes
d0726e348e Implement if/else action
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
David Remer
6ef3435a80 Remove segment as a required subject
If a segment is given, the subscriber needs to be subscribed to it, otherwise
the subscriber only needs to be globally subscribed

[MAILPOET-5514]
2023-10-03 19:14:30 +02:00
David Remer
b2320d2982 Add test for OrderFieldFactory to check for variable products
[MAILPOET-5553]
2023-10-02 14:24:42 +02:00
David Remer
3de300da3a Change method name to withStep
trunk changed the method name, this commit reflects this change for the tests

[MAILPOET-5516]
2023-09-25 07:11:43 -07:00
David Remer
8876007085 Add test for BuysFromACategoryTrigger
[MAILPOET-5517]
2023-09-25 07:11:43 -07:00
David Remer
a62618ffdd Add test for BuysAProductTrigger
[MAILPOET-5516]
2023-09-25 07:11:43 -07:00
John Oleksowicz
2517023ad0 Fix automation factory method calls
addStep was renamed to withStep but the calls in this helper weren't
updated
2023-09-20 19:03:25 +02:00
Jan Jakes
9d94c1c5f2 Fix method naming and argument type
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
e343c9201a Use step run controller in delay action
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
eeb4d64e8b Pass step run controller to automation actions
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
Jan Jakes
5f088d2c35 Add step run number to step run args
[MAILPOET-5569]
2023-09-20 02:36:40 -07:00
David Remer
c271a1f11a Remove outdated todo comment
[MAILPOET-5576]
2023-09-13 14:58:48 +02:00
David Remer
330d747f36 Add test for AbandonedCartTrigger
[MAILPOET-5576]
2023-09-13 14:58:48 +02:00
Jan Jakes
c09410af94 Include parent category IDs in customer order fields
[MAILPOET-5377]
2023-08-14 16:41:29 +02:00
Jan Jakes
6414cc832c Include parent category IDs in order category field
[MAILPOET-5377]
2023-08-14 16:41:29 +02:00