Rostislav Wolny
5fdba0e170
Replace current_time usage in tests
...
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Mike Jolley
0d6fe6e5eb
Apply rules to tests and tasks
2024-03-21 16:57:59 +01:00
Rodrigo Primo
a54e1f3c01
Replace expect()->greaterOrEquals() with verify()->greaterThanOrEqual()
...
codeception/verify 2.1 removed support for expect()->greaterOrEquals() so we need
to replace it with verify()->greaterThanOrEqual().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
c1c59fe392
Replace expect()->lessOrEquals() with verify()->lessThanOrEqual()
...
codeception/verify 2.1 removed support for expect()->lessOrEquals() so we need
to replace it with verify()->lessThanOrEqual().
[MAILPOET-5664]
2023-10-24 08:58:22 +03: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
Rodrigo Primo
00c5250cff
Replace expect()->notEquals() with verify()->notEquals()
...
codeception/verify 2.1 removed support for expect()->notEquals() so we need
to replace it with verify()->notEquals().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
afe378ba22
Replace expect()->equals() with verify()->equals()
...
codeception/verify 2.1 removed support for expect()->equals() so we need
to replace it with verify()->equals().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Jan Lysý
c711eac7f4
Update custom fields on confirmation when are stored in unconfirmed data
...
[MAILPOET-5246]
2023-05-03 11:31:24 +02:00
John Oleksowicz
c75bc388c9
Remove unnecessary cleanup code
...
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Sam Najian
9036b210a0
Add test for click stat recording for 1-click
...
[MAILPOET-4862]
2022-12-07 10:52:07 +01:00
Sam Najian
f337ac388b
Fix wrong assertions in PagesTest
...
[MAILPOET-4862]
2022-12-07 10:52:07 +01:00
Jan Jakes
d66fbb1c20
Fix confirmed IP value in tests
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
82aeb89854
Use strict types in tests
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Sam Najian
3e756bfadd
Add test to assert correct unsubscription method is saved
...
[MAILPOET-4733]
2022-11-25 14:51:57 +01:00
Sam Najian
735d33d05b
Add method of tracking when tracking unsubscriptions
...
[MAILPOET-4733]
2022-11-25 14:51:57 +01:00
David Remer
d2ec7bba42
Replace instance_of asserts in integration tests
...
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
David Remer
7fb8d64628
Rename CaptchaRenderer to CaptchaFormRenderer
...
[MAILPOET-4203]
2022-11-24 09:20:39 +01:00
Jan Jakes
725e0ecb00
Remove automation feature flag
...
[MAILPOET-4788]
2022-11-14 12:35:29 +02:00
Jan Lysý
d340909187
Replace repeating code with using factory
...
[MAILPOET-4141]
2022-06-20 12:00:47 +02:00
Rodrigo Primo
2e374d1a3b
Remove unused property from Pages
...
[MAILPOET-4020]
2022-04-04 16:24:21 +02:00
Rodrigo Primo
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
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