Commit Graph

3613 Commits

Author SHA1 Message Date
Rostislav Wolny
605005dc08 Use doctrine for cleanup in SendingQueueWorker test
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
de210991a4 Refactor creation of sending queue worker in test
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Jan Lysý
7ef0f7a600 Create simple router with newsletters redirect
[MAILPOET-3536]
2021-04-05 10:26:53 +02:00
Veljko
a6215e22ba Add clear field to fix the test 2021-03-31 13:20:35 +02:00
Rodrigo Primo
faf714e832 Remove more uses of the old models inside FormsTest
[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
Rodrigo Primo
a18ae06f8a Rewrite Forms::listing() API to use Doctrine
This commit replaces the usage of Paris with Doctrine inside
MailPoet\API\JSON\v1\Forms::listing(). It also introduces a new class
MailPoet\Form\Listing\FormListingRepository that is used by listing() to
prepare the query that is executed by Doctrine and a new
MailPoet\API\JSON\ResponseBuilders\FormsResponseBuilder::buildForListing()
method to prepare the response that is returned by listing(). A few tests were
adjusted and new tests were added for the new class.

[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
Rodrigo Primo
298b8730fe Updates parts of FormsTest to use Doctrine entities
This commit simply updates parts FormsTest to use Doctrine entities
instead of Paris objects.

[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
Pavel Dohnal
5480ceb879 Fix tests
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Jan Lysý
c07cb227ab Add comments to eslint exceptions
[MAILPOET-3511]
2021-03-30 14:05:47 +02:00
Jan Lysý
410c25482a Fix code style by updated eslint
[MAILPOET-3511]
2021-03-30 14:05:47 +02:00
Pavel Dohnal
0ebdc21a8b Fix flakey integration test
[MAILPOET-3489]
2021-03-30 12:05:47 +02:00
Jan Lysý
8573d99441 Replace timeListener in tests instead of creating new
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Jan Lysý
41324cf62a Add more supported fields to save method
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Jan Lysý
bb9d4429ec Add integration test for SubscriberSaveController
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Jan Lysý
37a7e8e252 Add test for save custom field for Subscribers
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Jan Lysý
933ef5e5c8 Add unit test on formatting value in SubscriberCustomFieldEntityTest
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Jan Lysý
da5aefa89a Add calling clear in SubscribersTest
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Jan Lysý
dcc70b3865 Use doctrine for save Subscriber
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
Jan Lysý
fd5a9904c0 Add listener for updating lastSubscribedAt
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
wxa
42adfa784a Remove old dynamic segments code
[MAILPOET-3484]
2021-03-29 14:31:44 +02:00
Rostislav Wolny
3f434aae76 Add acceptance tests for blocking trashing active segments
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
51e5206ed8 Fix trashing check to check also welcome and automatic emails
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
fc66381da2 Remove client side checks for trashing lists
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
271c0a0ec6 Block trashing of a active used single list on API
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
a264951904 Skip used segments when bulk trashing segments
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
b17236b88c Fix typos in Segments API test
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
63a3c9b785 Add test for bulk trashing in segments repository
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
f066bc8fdd Disallow trashing single dynamic segment with active email
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Jan Lysý
9ffc3372e6 Add test on count of subscribers by ids
[MAILPOET-3425]
2021-03-29 12:10:05 +02:00
wxa
dd6aff01db Fix duplicate automatic email for same product
[MAILPOET-3254]

It was happening when a second order was placed which contained the same product and some additional product.
2021-03-29 10:32:37 +02:00
Pavel Dohnal
b89b018641 Fix align saving in the form editor
[MAILPOET-3512]
2021-03-29 09:45:28 +02:00
Veljko
63a43edc94 Fix flaky counter in test
[MAILPOET-3513]
2021-03-24 16:56:34 +01:00
Pavel Dohnal
95825793c0 Use doctrine for populator query
[MAILPOET-3481]
2021-03-24 11:05:17 +01:00
Pavel Dohnal
3ae3102f9c Leave old task paused when activating newsletter
[MAILPOET-3481]
2021-03-24 11:05:17 +01:00
Pavel Dohnal
2dcf9a8a8f Pause all scheduled tasks when pausing newsletter
[MAILPOET-3481]
2021-03-24 11:05:17 +01:00
wxa
791c3f7a53 Remove unused currentFilter argument
[MAILPOET-3499]
2021-03-24 09:58:25 +01:00
wxa
872ff71f17 Fix first and last name sync on WooCommerce checkout
[MAILPOET-3499]
2021-03-24 09:58:25 +01:00
Pavel Dohnal
ce48153b12 Fix code using the combined segments
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
5b45bdac1e Enable joining segments using and/or
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
ceae8e17aa Make parameters unique
[MAILPOET-3212]

We need to be able to connect the same segments:
users who are editor or administrator
2021-03-23 15:58:34 +01:00
Pavel Dohnal
7a98abdead Connect dynamic segments filters using UNION select
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
wxa
eadb02ae5c Add tests for WP style shortcodes and arguments
[MAILPOET-3465]
2021-03-22 12:19:59 +01:00
Pavel Dohnal
7e0c718683 Add wait in the test to make sure users are synchronised
[MAILPOET-3496]
2021-03-19 13:15:09 +01:00
Jan Lysý
6b55cf08e0 Add acceptance test for count of subscribers
[MAILPOET-3219]
2021-03-17 10:42:16 +01:00
Rostislav Wolny
a44647d4f3 Add acceptance test for segments bulk actions
[MAILPOET-3351]
2021-03-17 09:52:34 +01:00
Pavel Dohnal
98ee40a203 Use doctrine entity in newsletter task test
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Pavel Dohnal
82bf183a6c Use doctrine entity in posts test
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Pavel Dohnal
caad80a09c Use doctrine entity to truncate table in tests
[MAILPOET-3027]
2021-03-16 14:40:18 +01:00
Jan Lysý
6f5f3bc6c5 Remove usage of old model from SubscriptionTest
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Jan Lysý
7968db94ff Update integration tests for usage SubscribersRepository
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00