Commit Graph

13 Commits

Author SHA1 Message Date
d340909187 Replace repeating code with using factory
[MAILPOET-4141]
2022-06-20 12:00:47 +02:00
2e374d1a3b Remove unused property from Pages
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
e806a1288b Update test to reduce flakiness
This test was failing sometimes on CircleCI. Using isToday() instead of
checking if the seconds match should reduce flakiness and is enough for
what we need to test.

[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
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
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
250e450c82 Replace most usages of old Subscriber model with SubscriberEntity in the Pages class
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
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
d613ac16aa Replace old SendingQueue model with Doctrine entity in PagesTest
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
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
14aa6eb3a5 Replace old Subscriber model with SubscriberEntity in PagesTest
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
fbf8aeb07f Replace Idiorm\ORM with MailPoetTest::truncateEntity() in PagesTest
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
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
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00