Jan Lysý
f5a2088000
Add test cases for minute scheduling
...
[MAILPOET-5244]
2023-04-19 15:32:28 +02:00
Jan Jakes
b296e40077
Extract Carbon datetime 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 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
Rostislav Wolny
11faf925cc
Refactor time assertions in AutomaticEmailTest to use assert with delta
...
Carbon:setTestNow was not working because we are instantiating the new Carbon instance with value.
This commit updates all DateTime assertions to use the new assertEqualDateTimes method
[MAILPOET-4867]
2022-11-28 14:19:30 +01:00
David Remer
d2ec7bba42
Replace instance_of asserts in integration tests
...
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Rostislav Wolny
cd3652eaa6
Fix canceling multiple automatic emails
...
When we deleted sending queue using SQL it remained in the entity manager
and subsequent flush (not the first one) triggered the error, because it didn't know the ScheduledTask entity attached
to the orphaned SendingQueue entity.
This commit fixes this by refactoring deletion of sending queue using standard repository method.
After fixing the issue for sending queue there was another issue with SchedulesTaskSubscriberEntity that remained in memory.
I fixed that by detaching those. Theoretically there might be many SchedulesTaskSubscriberEntities for an Automatic email so
I consider still safer to delete using SQL and if there are some loaded (in this case there is one) detach them.
[MAILPOET-4741]
2022-10-24 14:03:54 +02:00
Jan Lysý
d2247a1c76
Refactor parameter from int to entity
...
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
Jan Lysý
c93c42518a
Add return value for backward compatibility in tests
...
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
Jan Lysý
09a54fdcd1
Fix dependencies in tests
...
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
Jan Lysý
745ff6af2a
Remove SendingTask usages from AutomaticEmailTest
...
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
Jan Lysý
d141f23bb4
Remove old model from AutomaticEmailTest
...
[MAILPOET-4372]
2022-10-12 11:44:37 +02:00
Sam Najian
b7cccdae95
Adjust tests, remove models and Tasks\Sending
...
[MAILPOET-4371]
2022-08-22 13:06:43 +02:00
Sam Najian
873c295e99
Remove Paris models and Tasks\Sending from PostNotificationScheduler
...
[MAILPOET-4371]
2022-08-22 13:06:43 +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
Rodrigo Primo
81051e8295
Replace all Paris models with Doctrine code in SchedulerTest
...
[MAILPOET-4150]
2022-07-27 08:48:44 +02:00
Jan Lysý
586a5b8b8e
Fix typo in const name
...
[MAILPOET-4440]
2022-07-12 13:35:00 +02:00
Jan Lysý
d340909187
Replace repeating code with using factory
...
[MAILPOET-4141]
2022-06-20 12:00:47 +02:00
Jan Lysý
4ba5c6ce0c
Remove old model from Scheduler
...
[MAILPOET-4141]
2022-06-20 12:00:47 +02:00
David Remer
fce14358bf
Revert "Replace NewsletterOption and NewsletterOptionField models"
...
This reverts commit 9b087f719f
.
2022-05-17 12:27:46 +02:00
David Remer
46ebe847be
Revert "Replace all Paris models with Doctrine code in SchedulerTest"
...
This reverts commit 54e2d173c1
.
2022-05-17 12:27:46 +02:00
Rodrigo Primo
d89067854c
Replace NewsletterOption and NewsletterOptionField models
...
This commit repleaces the old NewsletterOption and NewsletterOptionField
models with Doctrine code in several test classes.
[MAILPOET-4150]
2022-05-16 13:18:21 +02:00
Rodrigo Primo
f48bb5758c
Replace all Paris models with Doctrine code in SchedulerTest
...
[MAILPOET-4150]
2022-05-16 13:18:21 +02:00
David Remer
c34356b99c
Remove optional $wp parameter in getScheduledTimeWithDelay method
...
[MAILPOET-4252]
2022-04-25 12:08:18 +02:00
David Remer
ca3f8bdc43
Make Scheduler non-static
...
[MAILPOET-4252]
2022-04-25 12:08:18 +02:00
Rostislav Wolny
bbe5654b05
Update/remove subdependencies for main composer.json
...
After I updated each dependency one by one I ran composer update.
[MAILPOET-4175]
2022-03-28 13:49:41 +02:00
Jan Jakes
9f790efbf0
Move plugin files to a subfolder
...
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00