Commit Graph

28 Commits

Author SHA1 Message Date
Jan Lysý
f2e39083a5 Update tests for the new default WP subscriber status
[MAILPOET-3483]
2021-05-03 10:24:25 +02:00
Rodrigo Primo
844ea3f6d8 Truncate first and last names before adding to wp_mailpoet_subscribers
MailPoet syncs users from wp_users to wp_mailpoet_subscribers. The
problem is that WP stores first and last names in a longtext field and
MP uses a varchar(255) field. This was causing a fatal error when
synchronizing names over 255 characters. This commit fixes this problem
by using SUBSTRING() to make sure that the 255 characters limit is
enforced when adding values to the columns first_name and last_name of
the wp_mailpoet_subscribers table. This should get rid of the fatal
error and it shouldn't be a problem to most users as it is unlikely that
a real user has a first or last name that is longer than 255 characters.

[MAILPOET-3246]
2021-03-02 16:09:47 +01:00
Jan Lysý
180a238b40 Use timestamp for DateTime compare in Segments WPTest
[MAILPOET-3367]
2021-01-25 11:52:25 +01:00
Pavel Dohnal
4e3dda9872 Fix flakey integration test
[MAILPOET-3336]
2021-01-25 09:04:20 +01:00
Rostislav Wolny
9473579766 Fix type issues in tests
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Rostislav Wolny
48ba20602e Handle batch sync of new users for disabled WP users segment
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
3dcb939432 Handle adding new WP users to disabled WP segment
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
645f888186 Refactor WP Users segment controller to injectable service
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Jan Lysý
d5abc80346 Disable restore trashed WP subscribers
[MAILPOET-3138]
2020-10-20 17:22:06 +02:00
Lysy Jan
ba4fd9eb1b Fix subscriber status resetting on WP user creation
Fixes:#2960
[MAILPOET-3016]
2020-08-04 13:41:48 +02:00
Jan Jakeš
81531116e7 Fix signup confirmation email for WP users trigger
[MAILPOET-2700]
2020-02-24 18:59:05 +00:00
Jan Jakeš
c7de47b822 Fix class/interface/trait opening brace on the same line
[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
Pavel Dohnal
4c5155132a Send a confirmation email when a user is added to a website
[MAILPOET-2567]
2020-01-27 09:26:15 +00:00
Jan Jakeš
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
wxa
bd1a84c5c3 Fix types by casting [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š
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
Ján Mikláš
dfec5dd6c0 Add tests for user status after single and batch user sync
[MAILPOET-2201]
2019-07-22 07:31:56 -04:00
wxa
b4bebb24a9 Skip the 'mark spammy subscribers' test if there is no user_status column [MAILPOET-2150] 2019-07-09 06:24:58 -04:00
Pavel Dohnal
ba5b1e9ee2 Mark spammy subscribers as unconfirmed
[MAILPOET-2150]
2019-07-09 06:24:58 -04:00
Amine Ben hammou
e6608a5cd7 Force confirmation for bulk synced WordPress users 2019-06-26 14:41:02 -04:00
Pavel Dohnal
f4f6827849 Keep new wordpress users as unconfirmed
[MAILPOET-2125]
2019-06-26 13:36:41 -04:00
Pavel Dohnal
3c63b3e84d Mark previously added spammy WP users as unconfirmed
[MAILPOET-2134]
2019-06-25 14:54:32 -04:00
Pavel Dohnal
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Rostislav Wolny
4c6e76dd44 Add SettingsController cache reset to integration tests
[MAILPOET-1757]
2019-01-31 14:51:07 +01:00
wxa
87e515b89d Move current unit tests to integration tests 2018-10-29 17:57:47 +03:00