Jan Jakes
fe4eeb0049
Fix send email step time-out happening too early
...
This was an off-by-one error — the first step run is the email scheduling run.
[MAILPOET-6246]
2024-09-23 13:00:48 +02:00
Jan Jakes
a1632ea512
Satisfy PHPCS checks also in tests
...
[MAILPOET-6150]
2024-08-29 17:23:34 +02:00
Jan Jakes
172ffb7b61
Increase number of checks if the email was sent in automation
...
[MAILPOET-6175]
2024-08-12 16:11:19 +02:00
Jan Jakes
8868c98c25
Add test for CreateAutomationRunHookTest
...
[MAILPOET-6177]
2024-08-12 12:25:42 +02:00
Rostislav Wolny
e5ab65f28e
Fix send action checkSendingStatus to support multiple emails per subscriber.
...
It is possible that one email (e.g., purchase in category) is sent multiple times
to the same subscriber.
AutomationEmailScheduler::getScheduledTaskSubscriber was selecting the task based on subscriber and newsletter.
In the case of multiple emails sent to one subscriber, the method failed to pick ScheduledTaskSubsrciberEntity because
the query was fetching multiple results, but getOneOrNullResult expects only one result.
This commit fixes it by adding additional filtering by $runId to get the ScheduledTaskSubsriberEntity associated
with the correct run.
I did the filtering in PHP because an alternative would be using LIKE %% in the query. The meta column is text.
[MAILPOET-6155]
2024-08-07 16:01:48 +02:00
Jan Jakes
9be6895cf1
Simplify automation test helpers
...
[MAILPOET-6131]
2024-07-10 12:56:52 +02:00
Jan Jakes
345571c6f9
Fix missing dummy IDs in tests
...
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Jan Jakes
a1bafad6f1
Add tests for email sent handler
...
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Jan Jakes
36089cc2f4
Save automation run info to scheduled task meta field
...
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Jan Jakes
123b0d65e2
Do not complete send email action run immediately, schedule a check instead
...
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Mike Jolley
0d6fe6e5eb
Apply rules to tests and tasks
2024-03-21 16:57:59 +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
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
8b40553d0b
Do not check subscriber against segment when sending transactional email
...
[MAILPOET-5720]
2024-02-14 14:36:22 +01: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
d4ea49d09a
Move OrderStatusChangeTrigger into own namespace
...
[MAILPOET-5661]
2023-11-06 12:57:56 +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
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
Jan Jakes
9d94c1c5f2
Fix method naming and argument type
...
[MAILPOET-5568]
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
John Oleksowicz
ee40743a96
Fix tests
...
MAILPOET-5410
2023-08-11 16:39:57 +02:00
David Remer
8b81016814
Add getAutomationsInTimespan method to controller
...
[MAILPOET-5091]
2023-07-18 13:03:16 +02:00
David Remer
8c2251089f
Add AutomationEmailController
...
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
Jan Jakes
a3cfeea552
Use tester helper to make sure order gets autocleaned
...
[MAILPOET-5169]
2023-06-19 11:06:23 +02:00
Jan Jakes
c2a63f4614
Unify automation ID format with WC order format
...
[MAILPOET-5169]
2023-06-19 11:06:23 +02:00
Jan Jakes
7444131021
Add subscriber automation fields
...
[MAILPOET-5172]
2023-05-17 12:36:05 +02:00
Jan Jakes
6cfc808248
Add subscriber statistic fields
...
[MAILPOET-5172]
2023-05-17 12:36:05 +02:00
Jan Jakes
906e76c73c
Map subscriber custom fields to automation fields
...
[MAILPOET-5036]
2023-05-17 12:36:05 +02:00
David Remer
402cb23b90
Test the transactional type is set correctly
...
[MAILPOET-4999]
2023-05-15 08:19:19 +02:00
Jan Jakes
69f21814e3
Rename "transactional" email type to "automation_transactional"
...
[MAILPOET-5258]
2023-04-24 09:54:08 +03:00
David Remer
b3e836548c
Create newsletter in test
...
[MAILPOET-4934]
2023-04-17 13:59:39 +02:00
David Remer
db3bbd83aa
Test the transactional type is set correctly
...
[MAILPOET-4999]
2023-04-17 13:59:39 +02:00
Jan Jakes
c1babe49db
Remove more no longer necessary test cleanups
...
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
f90e869402
Clean up after automations too
...
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
376dca1098
Remove unnecessary truncating
...
MAILPOET-5145
2023-04-07 12:11:12 -05: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
David Remer
6fa85ef879
Test order to subscriber subject transformation
...
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
93cfffe295
Allow sending an email multiple times
...
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00