Commit Graph

105 Commits

Author SHA1 Message Date
wxa
bacfd3c4dc Remove usages of StatisticsUnsubscribes model
[MAILPOET-3819]
2021-10-27 11:24:22 +02:00
Rodrigo Primo
ba15b9b251 Move ScheduledTask::findFutureScheduledByType() to ScheduledTasksRepository
Now that all other methods that use ScheduledTask::findByTypeAndStatus()
were moved to ScheduledTasksRepository, we can move
findFutureScheduledByType() as well and delete
ScheduledTask::findByTypeAndStatus().

[MAILPOET-3845]
2021-10-26 16:50:27 +02:00
Rodrigo Primo
2c78db9e04 Refactor ScheduledTasks::rescheduleProgressively() to use Doctrine
[MAILPOET-3844]
2021-10-25 14:17:21 +02:00
Rodrigo Primo
e69a3f9a53 Migrate method findCompletedByType() to Doctrine
[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Rodrigo Primo
e804a0fe7d Fix method used for a integration test
The test ScheduledTaskTest::testItCanGetFutureScheduledTasks() was
created to test ScheduledTask::findFutureScheduledByType() but due to a
mistake it was testing ScheduledTask::findDueByType().

[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Rodrigo Primo
65eef3dfbe Migrate methods findDueByType() and findRunningByType() to Doctrine
[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Pavel Dohnal
9977ed75fb Deprecate the form model
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Rodrigo Primo
97d177013f Refactor \MailPoet\Models\Newsletter::getArchives() to Doctrine
[MAILPOET-3629]
2021-09-20 14:01:34 +02:00
Jan Lysý
f7b77cf75d Remove FormRepository from SettingsController
[MAILPOET-3643]
2021-06-07 14:14:50 +02:00
Pavel Dohnal
70b2b3c40e Remove unused code
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Pavel Dohnal
7426479631 Remove usage of deprecated method
[MAILPOET-3267]
2021-05-31 13:32:10 +02:00
Rodrigo Primo
a7fe876180 Fix PHPStan undefined property error introduced after update to version 0.12.83
This commit fixes the following PHPStan error what started happening
after the update to version 0.12.83. It seems that our model classes
work with properties using both snake_case and camelCase names, so that
is why the change made here doesn't affect the modified unit test.

```
 ------ ---------------------------------------------
  Line   tests/integration/Models/SubscriberTest.php
 ------ ---------------------------------------------
  740    Access to an undefined property
         MailPoet\Models\Subscriber::$deleted_at.
 ------ ---------------------------------------------
```

[MAILPOET-3491]
2021-04-12 08:55:14 +02:00
wxa
42adfa784a Remove old dynamic segments code
[MAILPOET-3484]
2021-03-29 14:31:44 +02:00
Jan Lysý
cb0d3c70ad Use Doctrine for update success message in Settings
[MAILPOET-3034]
2021-03-11 11:46:16 +01:00
wxa
19dd9180bd Rename 'not in a list' option
[MAILPOET-3462]
2021-03-10 13:16:48 +01:00
Jan Lysý
d3af5a1621 Remove phpstan errors from integration Models tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Pavel Dohnal
1d6cf56fd9 Refactor subscriber statistics to doctrine
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Rostislav Wolny
54727ad9a2 Fix integration tests to work with updated codeception/verify
[MAILPOET-3203]
2020-10-20 13:18:43 +02:00
Jan Lysý
2428cf2d9d Remove old delete and trash tests in Subscriber
[MAILPOET-3033]
2020-10-07 14:26:54 +02:00
Rostislav Wolny
95af49e43f Refactor creating/deleting WordPress users in integration tests
[MAILPOET-3077]
2020-09-29 08:24:11 +02:00
Lysy Jan
be4fb96dc5 Add tests to import for new properties
Fixes:#2968
[MAILPOET-2957]
2020-08-10 15:16:31 +02:00
Rostislav Wolny
0d4abd9bce Mark Newsletter trash,restore,delete as deprecated and use bulk methods instead
[MAILPOET-2898][MAILPOET-2758]
2020-06-17 14:37:06 +02:00
Rostislav Wolny
babb27dd72 Remove bulk methods from legacy newsletter model
[MAILPOET-2898]
2020-06-17 14:37:06 +02:00
Pavel Dohnal
c63c49af89 Use doctrine for latest post fetching
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
Pavel Dohnal
b5a5454466 Remove unused code
[PREMIUM-142]
2020-05-14 11:08:28 +02:00
wxa
637a56c92a Fix storing custom field dates in different formats [MAILPOET-2881] 2020-05-07 09:54:45 +02:00
Rostislav Wolny
698e9f00c1 Pause running scheduled task when restoring a newsletter
[MAILPOET-2819]
2020-04-02 11:48:51 +02:00
Rostislav Wolny
da4298a83d Keep newsletters in sending state after restoring from trash
[MAILPOET-2819]
2020-04-02 11:48:51 +02:00
Rostislav Wolny
dc55fb64cd Set even 30 days old newsletters as scheduled when reactivating an email
[MAILPOET-2709]
2020-04-01 16:49:27 +02:00
Jan Jakeš
72af35e2af Rewrite newsletter template model test to Doctrine repository test
[MAILPOET-2645]
2020-03-23 00:33:40 +01:00
Rostislav Wolny
6e33cc80e2 Fix fields extraction for form data
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
Jan Jakeš
cf88ada402 Rewrite old tests to NewslettersListingRepository tests
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
Rostislav Wolny
7bf1b69a94 Update form::getFields to return also nested fields
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
Jan Jakeš
1774b48666 Autofix unused "use" statements
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
2ec85eee7b Fix mock naming and strings in integration tests
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
94afd66325 Convert properties not caught by Code Sniffer to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
d0292f8624 Convert variable names to camel case in PHPDoc
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
8c848cfa28 Convert property names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
wxa
cde877122a Fix various undefined variables and argument types [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
17b578a09f Fix undefined classes and functions [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
09a1411c81 Fix types with annotations [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
bd1a84c5c3 Fix types by casting [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
6ed3915b1a Use a wrapped function for current_time [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
1d757e1374 Fix undefined properties in tests [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
Amine Ben hammou
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
Jan Jakeš
04f266518b Rewrite SimpleWorkerTest to tests of particular services
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
Jan Jakeš
0e964de6d4 Move nesbot/carbon to vendor-prefixed
[MAILPOET-2560]
2019-12-15 21:55:48 +00:00
Jan Jakeš
60889c53f4 Add Idiorm to MailPoetVendor namespace
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00