Commit Graph

193 Commits

Author SHA1 Message Date
Rostislav Wolny
bbb23e4f37 Update also newsletter status when completing sending task
[MAILPOET-3962]
2021-11-23 13:39:51 +01:00
Brezo Cordero
c95557a0ec Remove mixed from test
[MAILPOET-3945]
2021-11-16 09:14:41 +01:00
Rodrigo Primo
c870c416ad Replace NewsletterLink with NewsletterLinkEntity in the class LinksTest
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
612eb1073d Move NewstetterLink properties to NewsletterLinkEntity
Doing this as part of the task to deprecated old Paris models
(NewsletterLink) and use Doctrine entities instead
(NewslleterLinkEntity).

[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Brezo Cordero
9da404477b Improve file path on test
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
Brezo Cordero
79021fcd19 Check types on test
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
Brezo Cordero
534b8f085d Do not replace quotes with Unicode in ALC titles
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
Rodrigo Primo
ba15b9b251 Move ScheduledTask::findFutureScheduledByType() to ScheduledTasksRepository
Now that all other methods that use ScheduledTask::findByTypeAndStatus()
were moved to ScheduledTasksRepository, we can move
findFutureScheduledByType() as well and delete
ScheduledTask::findByTypeAndStatus().

[MAILPOET-3845]
2021-10-26 16:50:27 +02:00
Rostislav Wolny
47840f9dfc Enqueue re-engagement subscribers list by list
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
af7c9d27ba Add condition for cases when subscribers received only one email
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
9aae441d99 Update queue counts or delete scheduled task
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
bafb41c94e Refactor re-engagement scheduling code to more methods
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
3c5a368c2c Add scheduling of re-engagement emails
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rostislav Wolny
23278bd785 Add re-engagement email scheduling cron job and dummy scheduler
[MAILPOET-3782]
2021-10-18 16:21:52 +02:00
Rodrigo Primo
7d87b042e8 Add factory method to create ScheduledTasks
[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Rodrigo Primo
e69a3f9a53 Migrate method findCompletedByType() to Doctrine
[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Jan Lysý
76ff8bba1a Add test for replacing paragraph class
[MAILPOET-3474]
2021-10-04 10:19:39 +02:00
Rodrigo Primo
65eef3dfbe Migrate methods findDueByType() and findRunningByType() to Doctrine
[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Brezo Cordero
df5cab2060 Fix flaky schedule welcome email test
[MAILPOET-3793]
2021-09-29 09:59:25 +02:00
Brezo Cordero
d37f0642d5 Fix flaky schedule automatic email test
[MAILPOET-3793]
2021-09-29 09:59:25 +02:00
Rodrigo Primo
97d177013f Refactor \MailPoet\Models\Newsletter::getArchives() to Doctrine
[MAILPOET-3629]
2021-09-20 14:01:34 +02:00
Pavel Dohnal
ec86e742c2 Fix coding standards
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
21839fc30b Fix indentation of multiline function declarations
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Brezo Cordero
1de3aef76f Use data factories on tests
[MAILPOET-3637]
2021-09-06 10:08:09 +02:00
Brezo Cordero
fb5f65f60e Refactor ViewInBrowser to Doctrine
Use NewsletterLinkEntity in test instead of MailPoet\Models\NewsletterLink

[MAILPOET-3673]
2021-09-06 10:08:09 +02:00
Brezo Cordero
9d9efccd98 Refactor ViewInBrowser to Doctrine
Use NewsletterEntity and NewslettersRepository instead of MailPoet\Models\Newsletter.

[MAILPOET-3673]
2021-09-06 10:08:09 +02:00
Jan Lysý
f9a093c958 Add testing rendering button in post process
[MAILPOET-3468]
2021-08-16 11:44:41 +02:00
Rodrigo Primo
e59992cc16 Fix checkGenericClassInNonGenericObjectType PHPStan errors
This commit removes the checkGenericClassInNonGenericObjectType flag
from PHPStan configuration files and fixes all associated errors in our
code base.

[MAILPOET-3236]
2021-08-09 12:58:56 +02:00
Rostislav Wolny
65b834a9ff Update renamed NotCamelCaps rule
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Jan Lysý
f106d6f2f2 Fix dependencies in integration tests
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
aeeceeeb8d Use Newsletter\Url as service
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
8826b01ec9 Remove static calling from Newsletter/Links
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
85b9d5b7e4 Use Doctrine entity in calling LinkTokens::verifyToken
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Pavel Dohnal
917de80268 Refactor repository to a property
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Pavel Dohnal
70b2b3c40e Remove unused code
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Pavel Dohnal
7426479631 Remove usage of deprecated method
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Pavel Dohnal
9e44ee74a6 Create a doctrine version for isSubscriberProcessed
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Rostislav Wolny
39f8dfae5b Sanitize only specific block types in newsletter API data
[MAILPOET-3538]
2021-05-03 14:20:07 +02:00
Rostislav Wolny
51e5206ed8 Fix trashing check to check also welcome and automatic emails
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
wxa
eadb02ae5c Add tests for WP style shortcodes and arguments
[MAILPOET-3465]
2021-03-22 12:19:59 +01:00
Pavel Dohnal
caad80a09c Use doctrine entity to truncate table in tests
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Jan Lysý
7968db94ff Update integration tests for usage SubscribersRepository
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Pavel Dohnal
8608bc7875 Use newsletter sent at in dates shortcode
[MAILPOET-3375]
2021-03-10 14:38:05 +01:00
Jan Lysý
878e3eb28f Simplify newsletter body data repair
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
Jan Lysý
78717509c8 Add tests for newsletter data fixers
[MAILPOET-3430]
2021-03-02 13:48:07 +01:00
Rostislav Wolny
dc4727117c Fix view in browser link shortcode and extend test
[MAILPOET-3434]
2021-02-17 16:11:59 +01:00
Pavel Dohnal
5b5e01465c [MAILPOET-3408] 2021-02-10 14:52:20 +01:00
Jan Lysý
cb60c827a2 Remove phpstan errors from integration Newsletter tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Jan Lysý
83cb272555 Use method createOrUpdate from SegmentRepository in tests
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
Pavel Dohnal
56d7cd1398 Fix rendering shortcodes in subject
[MAILPOET-3333]
2020-12-03 14:11:53 +01:00