Commit Graph

193 Commits

Author SHA1 Message Date
835d8bc0af Fix PHPUnit 6 & Codeception\Verify incompatibilities
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00
wxa
3584b717dc Fix array offset access on null/boolean and with curly braces [MAILPOET-2577] 2020-01-23 12:46:52 +00:00
2ef41b56e0 Fix various regressions introduced by camel case conversion
[MAILPOET-2635]
2020-01-20 10:27:36 +00:00
3b9ba5cac2 Fix stats redirect
When an unauthenticated user comes to any page they are redirected
to login screen. After they authenticate they are redirected
to the original page. But the # part of the url is ignored.
So we have to use regular query params from the email and
redirect user to the canonical URL later.

[MAILPOET-2554]
2020-01-15 16:50:24 +00:00
2ec85eee7b Fix mock naming and strings in integration tests
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
685b4885c0 Exclude WordPress and WooCommerce variables from camel case conversion
[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
3bbc8ea2af Convert variable names to camel case in strings
[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
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
c493a43c35 Fix SendingTask creation from queue [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
176aba69fe Specify types for mocks [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
dec7bc24a5 Fix undefined properties in models [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
7285a4a075 Fix extra arguments in method calls [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
ce719433e8 Fix constructors [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
a5ec593568 Rewrite mocks to nicer variants
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
04f266518b Rewrite SimpleWorkerTest to tests of particular services
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
9c02da4626 Fix WooCommerce orders worker tests
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
9adbd7f4a8 Fix automated emails worker tests
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
a8f1cd15bf Fix Migration worker tests
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
adb4bb864e Fix Bounce worker tests
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
6e74851850 Remove no longer relevant test
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
8496dee89f Fix DaemonTest and DaemonHttpRunner tests
[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
5cb75ae9ea Add missing argument
[MAILPOET-2394]
2019-12-10 14:46:13 +00:00
d0369e96c9 Add warning to stats notification
[MAILPOET-2394]
2019-12-10 14:46:13 +00:00
60889c53f4 Add Idiorm to MailPoetVendor namespace
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00
dc5e2ae386 Simplify WorkersFactory using DI and making it container-aware
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
382df5e034 Pass cron worker timer in process() method instead of a constructor
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
afecae15f5 Extract scheduling logic from SimpleWorker
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
59ac38cabd Use processTaskStrategy() instead of custom logic in Bounce worker
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
ac794aaca2 Use processTaskStrategy() instead of custom logic in Migration worker
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
cd93940940 Make static methods in cron workers non-static
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
ba41f4901e Move SQL queries from SimpleWorker to model, improve naming
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
4e8165c4b4 Fix MailPoet & WordPress cron trigger tests
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
f4c2dda560 Fix DaemonHttpRunnerTest
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
072aa54f37 Move CronTriggerTest from integration to unit
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
b1aed487be Simplify CronTrigger methods list & its usage
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
650f9a8c90 Use proper check for existence
[MAILPOET-2535]
2019-11-20 10:24:39 +00:00
15acedc94f Remove static (mis)usages of Mailer::getMailerConfig()
[MAILPOET-2515]
2019-11-14 10:02:28 +00:00
wxa
93346ede3b Update tests [MAILPOET-2514] 2019-11-11 16:00:40 +00:00
40c87d50fe Remove old Setting model from integration tests
[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