Jan Jakes
dd5a11a34f
Fix and improve SchedulerTest::testItDeletesScheduledAutomaticEmailWhenUserDoesNotExist()
...
Having no segment and no task subscriber caused the test pass even without removing the subscriber.
[MAILPOET-4375]
2023-11-02 12:53:36 +01:00
Jan Jakes
2de356bcbb
Fix and improve SchedulerTest::testItDeletesQueueDuringProcessingWhenNewsletterNotFound()
...
Having no segment and no task subscriber caused the test pass even without removing the newsletter.
[MAILPOET-4375]
2023-11-02 12:53:36 +01:00
Jan Jakes
d1530ca3e0
Rewrite ShedulerTest using Doctrine
...
[MAILPOET-4375]
2023-11-02 12:53:36 +01:00
Rodrigo Primo
2ced2b4afa
Replace expect()->lessThan() with verify()->lessThan()
...
codeception/verify 2.1 removed support for expect()->lessThan() so we need
to replace it with verify()->lessThan().
[MAILPOET-5664]
2023-10-24 08:58:22 +03: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
4bc4e9b254
Replace expect()->startsWith() with verify()->stringStartsWith()
...
codeception/verify 2.1 removed support for expect()->startsWith() so we need
to replace it with verify()->stringStartsWith().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
525495409c
Replace expect()->notNull() with verify()->notNull()
...
codeception/verify 2.1 removed support for expect()->notNull() so we need
to replace it with verify()->notNull().
[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
e4136fee8c
Replace expect()->isEmpty() with verify()->empty()
...
codeception/verify 2.1 removed support for expect()->isEmpty() so we need
to replace it with verify()->empty().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
5bc5b5ebd2
Replace expect()->notEmpty() with verify()->notEmpty()
...
codeception/verify 2.1 removed support for expect()->notEmpty() so we need
to replace it with verify()->notEmpty().
[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
709be1d541
Replace expect()->null() with verify()->null()
...
codeception/verify 2.1 removed support for expect()->null() so we need
to replace it with verify()->null().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
997f635d4a
Replace expect()->false() with verify()->false()
...
codeception/verify 2.1 removed support for expect()->false() so we need
to replace it with verify()->false().
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
9adbf81a78
Replace expect()->true() with verify()->true()
...
codeception/verify 2.1 removed support for expect()->true() so we need
to replace it with verify()->true().
[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
Rodrigo Primo
7a82270769
Add types to verifyWPSubscriber() based on PR reviewer feedback
...
[MAILPOET-4370]
2023-05-30 13:12:29 +02:00
Rodrigo Primo
bb2c77de31
Simplify verifyMailpoetSubscriber() by setting types in the signature
...
[MAILPOET-4370]
2023-05-30 13:12:29 +02:00
Rodrigo Primo
06a2c4e2bc
Refactor Scheduler to use SubscriberEntity instead of Subscriber model
...
It was necessary to add a call to SubscribersRepository::remove() to two
integration tests to make sure Doctrine cleared its internal cache.
Maybe this should be handled by SubscribersRepository::bulkDelete().
[MAILPOET-4370]
2023-05-30 13:12:29 +02:00
Rodrigo Primo
b251fa8ee9
Replace SubscribeSegment model with Doctrine code in Scheduler
...
[MAILPOET-4370]
2023-05-30 13:12:29 +02:00
Rodrigo Primo
3b46668784
Refactor processScheduledStandardNewsletter() to use Doctrine
...
[MAILPOET-4370]
2023-05-30 13:12:29 +02:00
Rodrigo Primo
ca3b5032ca
Replace Newsletter model with NewsletterEntity in SchedulerTest
...
Temporary code was added to Scheduler to make some of its methods work
both with a Newsletter model and a NewsletterEntity.
[MAILPOET-4370]
2023-05-30 13:12:29 +02:00
Rodrigo Primo
1a036b8772
Use constants from NewsletterEntity instead of Newsletter model in SchedulerTest
...
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
fb9cfe24ce
Replace ScheduledTask model with ScheduledTaskEntity in SchedulerTest
...
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
7001b18858
Replace ScheduledTaskSubscribe model with ScheduledTaskSubscriberEntity in SchedulerTest
...
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
54b135d9c1
Replace NewsletterSegment model with NewsletterSegmentEntity in SchedulerTest
...
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
c3cb29c195
Replace SendingQueue model with SendingQueueEntity in SchedulerTest
...
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
51fe832592
Replace Segment model with SegmentEntity in SchedulerTest
...
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
661690cc10
Replace Subscriber model with SubscriberEntity in SchedulerTest
...
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
7e49ef3001
Replace SubscriberSegment model with SubscriberSegmentEntity in SchedulerTest
...
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Jan Jakes
69f21814e3
Rename "transactional" email type to "automation_transactional"
...
[MAILPOET-5258]
2023-04-24 09:54:08 +03:00
David Remer
9afe052b2a
Test transactional emails get scheduled
...
[MAILPOET-4999]
2023-04-17 13:59:39 +02:00
Jan Jakes
b296e40077
Extract Carbon datetime reset to test bootstrap
...
MAILPOET-5145
2023-04-07 12:11:12 -05:00
Jan Jakes
70e6447e28
Extract WPFunctions reset to test bootstrap
...
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
Jan Lysý
26a85458a5
Remove usage Sending::createFromQueue from Scheduler test
...
[MAILPOET-4369]
2023-03-02 12:39:35 +02:00
David Remer
4577ca5476
Fix tests
...
[MAILPOET-3982]
2022-12-06 14:17:49 +01:00
Jan Jakes
82aeb89854
Use strict types in tests
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
7db40b27b5
Fix errors automatically with phpcbf
...
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
David Remer
d2ec7bba42
Replace instance_of asserts in integration tests
...
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Rostislav Wolny
146a55b921
Improve stability of SchedulerTest by adding 1s delta to time comparisons
...
[MAILPOET-4780]
2022-11-07 19:15:43 +01:00
Rostislav Wolny
918a4d7c74
Refresh the sending queue entity when fetching it from the old model
...
By moving the refresh code into the method used for getting sending queue entity for the old model object
we want to make our code better protected from working with inconsistent sending queue data.
[MAILPOET-4750]
2022-10-27 12:08:31 +02:00
David Remer
bb04935f29
Add repository to testee
...
[MAILPOET-4708]
2022-10-10 17:13:17 +02:00
Jan Lysý
0551d02815
Add refreshing sending queue
...
Because we are still working with old model on some places, it's necessary to refresh both sides of the relation.
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Jan Lysý
97801cfe25
Remove usage of Sending::getScheduledQueues
...
[MAILPOET-4367]
2022-09-19 11:07:16 +02:00
Jan Jakes
047bd94d98
Implement sending for automation emails
...
[PREMIUM-194]
2022-09-08 09:20:20 +02:00
Jan Lysý
fecb26b3b5
Replace usage ScheduledTask::touchAllByIds with repository
...
[MAILPOET-4309]
2022-08-31 13:42:21 +02:00
Jan Lysý
5f88a27ccb
Extend integration test
...
[MAILPOET-4310]
2022-08-22 11:04:45 +02:00
Jan Lysý
bfc2a7d2af
Update dependencies in tests
...
[MAILPOET-4310]
2022-08-22 11:04:45 +02:00
Rodrigo Primo
3684530056
Replace NewsletterOption and NewsletterOptionField models
...
This commit repleaces the old NewsletterOption and NewsletterOptionField
models with Doctrine code in several test classes.
[MAILPOET-4150]
2022-07-27 08:48:44 +02:00