Commit Graph

36 Commits

Author SHA1 Message Date
Rodrigo Primo
42b5efda1b Remove Tasks\Sending
This class is not used anymore and can be removed.

[MAILPOET-5684]
2024-01-31 12:21:54 +01:00
Rodrigo Primo
6c176450c0 Remove tests for \MailPoet\Tasks\Sending methods that were removed
Sending::removeSubscribers() and Sending::saveSubscriberError() were
removed in a previous commit but the tests were not.

[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
Jan Lysý
41a55262fe Fix PHPStan warnings in tests
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Jan Jakes
bb29f25c40 Remove simple usages of MailPoet\Tasks\Sending from integration tests
[MAILPOET-4375]
2023-11-02 12:53:36 +01:00
Rodrigo Primo
63a0f0b940 Remove \MailPoet\Tasks\Subscribers class now that it is not used anymore
[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
11f8de4176 Add integration test for Sending::saveSubscriberError()
[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
9f48427b1c Update test coverage for updateProcessedSubscribers()
[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
4e633f64fb Remove unused method removeAllSubscribers()
This method was added in c0c57f6b67 but
its only usage besides integration test was removed in
18a6a1c439. It doesn't seem like it is
still used in our code base.

[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
6b56a3ab7f Improve test coverage for Sending::removeSubscribers()
[MAILPOET-4368]
2023-10-25 21:09:39 +02:00
Rodrigo Primo
8fd8b8f193 Refactor Sending::setSubscribers() to use Doctrine instead of Paris
[MAILPOET-4368]
2023-10-25 10:31:45 +02:00
Rodrigo Primo
b252043dac Refactor Sending::getSubscribers() to use Doctrine instead of Paris
[MAILPOET-4368]
2023-10-25 10:31:45 +02:00
Rodrigo Primo
eb16cca0da Improve test coverage for Sending::getSubscribers()
[MAILPOET-4368]
2023-10-25 10:31:45 +02:00
Rodrigo Primo
52ebb9562c Replace ScheduledTaskSubscriber model with corresponding entity in SendingTest
[MAILPOET-4368]
2023-10-25 10:31:45 +02:00
Rodrigo Primo
6488bd5fd4 Replace Newsletter model with Newsletter entity in SendingTest
[MAILPOET-4368]
2023-10-25 10:31:45 +02:00
Rodrigo Primo
73445afd70 Replace expect_that() with verify()->instanceOf()
codeception/verify 2.1 removed support for expect_that() so we need
to replace it with verify()->instanceOf().

[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
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
1865fc8930 Replace expect()->isInstanceOf() with verify()->instanceOf()
codeception/verify 2.1 removed support for expect()->isInstanceOf() so we need
to replace it with verify()->instanceOf().

[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
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
alex-mailpoet
5d88f02216 Replace multiple subscriber update queries with one in sending loop
[MAILPOET-5178]
2023-07-03 16:52:46 +02:00
John Oleksowicz
d112d4088f Fix issue with IDs
MAILPOET-5145
2023-04-07 12:11:12 -05:00
John Oleksowicz
376dca1098 Remove unnecessary truncating
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
David Remer
d2ec7bba42 Replace instance_of asserts in integration tests
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Jan Lysý
6989bd9413 Make limit parameter optional
Unification function parameters with a similar method from the repository.
[MAILPOET-4367]
2022-09-19 11:07:16 +02:00
Jan Lysý
97801cfe25 Remove usage of Sending::getScheduledQueues
[MAILPOET-4367]
2022-09-19 11:07:16 +02:00
Sam Najian
c22d23f91c Remove Tasks\State class and relevant test file
[MAILPOET-4355]
2022-08-22 11:24:06 +02:00
Jan Lysý
7ef341e38a Replace Sending::getRunningQueues in integration test
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Rodrigo Primo
ea1bbf7b70 Replace Paris models with Doctrine entities in BatchIteratorTest
[MAILPOET-4357]
2022-08-16 15:03:52 +02:00
Sam Najian
f44afbddf2 Remove SendingQueue model usages
[MAILPOET-4361]
2022-07-18 16:47:48 +02:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00