Commit Graph

10 Commits

Author SHA1 Message Date
Rodrigo Primo
bb47db85b8 Improve PagesTest::testItUnsubscribes()
This commit improves the test PagesTest::testItUnsubscribes() but adding
a segment to the subscriber and making sure that the status of the
SubscriberSegmentEntity changes when Pages::unsubscribe() is called.
Before this change, the test was not covering this part of the execution
path of the tested code.

[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Rodrigo Primo
74bb3be3da Replace remaining Paris models with Doctrine entities in PagesTest
This commit replaces the old Paris models Newsletter, NewsletterOption and
NewsletterOptionField with the correspondent Doctrine entities.

[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Rodrigo Primo
250e450c82 Replace most usages of old Subscriber model with SubscriberEntity in the Pages class
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Rodrigo Primo
84d49caa33 Add integration test to check that unconfirmed data is persisted
This commit adds an integration test to check that unconfirmed data is persisted
when Pages::confirm() is called and the subscriber has some unconfirmed
data set. Before there was no test covering this part of the code.

[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Rodrigo Primo
d613ac16aa Replace old SendingQueue model with Doctrine entity in PagesTest
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Rodrigo Primo
123a27a6bb Replace old Subscriber and SubscriberSegment models with Doctrine
This commit replaces the old Subscriber and SubscriberSegment models
with Doctrine entities in the class PagesTest.

[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Rodrigo Primo
14aa6eb3a5 Replace old Subscriber model with SubscriberEntity in PagesTest
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Rodrigo Primo
fbf8aeb07f Replace Idiorm\ORM with MailPoetTest::truncateEntity() in PagesTest
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Jan Jakes
86d934ba36 Add hook for segment subscription
This will be used for a "SegmentSubscribed" trigger for automation
that can trigger welcome emails and other actions.

[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00