Commit Graph

94 Commits

Author SHA1 Message Date
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
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
d3af5a1621 Remove phpstan errors from integration Models tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
1d6cf56fd9 Refactor subscriber statistics to doctrine
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
54727ad9a2 Fix integration tests to work with updated codeception/verify
[MAILPOET-3203]
2020-10-20 13:18:43 +02:00
2428cf2d9d Remove old delete and trash tests in Subscriber
[MAILPOET-3033]
2020-10-07 14:26:54 +02:00
95af49e43f Refactor creating/deleting WordPress users in integration tests
[MAILPOET-3077]
2020-09-29 08:24:11 +02:00
be4fb96dc5 Add tests to import for new properties
Fixes:#2968
[MAILPOET-2957]
2020-08-10 15:16:31 +02:00
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
babb27dd72 Remove bulk methods from legacy newsletter model
[MAILPOET-2898]
2020-06-17 14:37:06 +02:00
c63c49af89 Use doctrine for latest post fetching
[MAILPOET-2899]
2020-05-28 11:28:51 +02:00
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
698e9f00c1 Pause running scheduled task when restoring a newsletter
[MAILPOET-2819]
2020-04-02 11:48:51 +02:00
da4298a83d Keep newsletters in sending state after restoring from trash
[MAILPOET-2819]
2020-04-02 11:48:51 +02:00
dc55fb64cd Set even 30 days old newsletters as scheduled when reactivating an email
[MAILPOET-2709]
2020-04-01 16:49:27 +02:00
72af35e2af Rewrite newsletter template model test to Doctrine repository test
[MAILPOET-2645]
2020-03-23 00:33:40 +01:00
6e33cc80e2 Fix fields extraction for form data
[MAILPOET-2754]
2020-03-16 19:27:27 +01:00
cf88ada402 Rewrite old tests to NewslettersListingRepository tests
[MAILPOET-2645]
2020-03-11 17:06:02 +00:00
7bf1b69a94 Update form::getFields to return also nested fields
[MAILPOET-2609]
2020-03-06 14:15:14 +01:00
1774b48666 Autofix unused "use" statements
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
2ec85eee7b Fix mock naming and strings in integration tests
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
94afd66325 Convert properties not caught by Code Sniffer to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
d0292f8624 Convert variable names to camel case in PHPDoc
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
8c848cfa28 Convert property names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
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
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
04f266518b Rewrite SimpleWorkerTest to tests of particular services
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
0e964de6d4 Move nesbot/carbon to vendor-prefixed
[MAILPOET-2560]
2019-12-15 21:55:48 +00:00
60889c53f4 Add Idiorm to MailPoetVendor namespace
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00
b0ef65a1eb Allow saving forms without name
[MAILPOET-2450]
2019-11-06 16:54:40 +00:00
826ba18e14 Remove old Setting model and test
[MAILPOET-2436]
2019-11-06 16:32:32 +00:00
40c87d50fe Remove old Setting model from integration tests
[MAILPOET-2436]
2019-11-06 16:32:32 +00:00
52e53181b9 Move default sender tests from old model to API test
[MAILPOET-2436]
2019-11-06 16:32:32 +00:00
d970dda637 Replace "new SettingsController()" with fetch from DI container
[MAILPOET-2436]
2019-11-06 16:32:32 +00:00
wxa
70c73295d7 Fix bulk trashing/deletion of subscribers with wp_user_id = 0 [MAILPOET-2489] 2019-11-06 16:22:37 +00:00
wxa
684922cbdf Update tests [MAILPOET-2460] 2019-10-24 10:57:36 +01:00
fd3b07c916 Fix failing multisite tests
[MAILPOET-2466]
2019-10-10 17:17:58 +01:00
c59c13f5e2 Move dynamic segment tests to test namespace
[MAILPOET-2382]
2019-10-09 13:36:24 +01:00
70a89b7939 Move dynamic segments from Premium plugin
[MAILPOET-2382]
2019-10-09 13:36:24 +01:00
ade1cc4d8e Autofix alphabetically sorted use statements
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00