Commit Graph

268 Commits

Author SHA1 Message Date
Jan Lysý
f106d6f2f2 Fix dependencies in integration tests
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
aeeceeeb8d Use Newsletter\Url as service
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
f7b77cf75d Remove FormRepository from SettingsController
[MAILPOET-3643]
2021-06-07 14:14:50 +02:00
Jan Lysý
4d5630b1ca Remove ScheduledTaskRepository from SettingsController
[MAILPOET-3643]
2021-06-07 14:14:50 +02:00
Jan Lysý
a0a0313c46 Use WP transient for lock running migrations
[MAILPOET-3537]
2021-05-24 14:59:40 +02:00
Pavel Dohnal
d9ec70dfe6 Refactor form api test to doctrine
[MAILPOET-3037]
2021-05-19 11:00:18 +02:00
Pavel Dohnal
61d73c1b6c Remove unused method
[MAILPOET-3037]
2021-05-19 11:00:18 +02:00
Jan Lysý
28060c8e12 Reschedule existing subscriber score task on reset
[MAILPOET-3533]
2021-05-12 14:42:22 +02:00
Rostislav Wolny
5f5e5d0860 Fix backend error messages
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Pavel Dohnal
025d588591 Fix tests
[MAILPOET-3525]
2021-04-26 13:46:23 +02:00
Jan Lysý
3d5905c288 Remove usage old model from FormsResponseBuilderTest
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
31bff0efb4 Remove rest of usage old model SubscriberIP
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
a715aa9b76 Replace usages of StatisticsForms with Doctrine
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
66a0834a37 Use CustomFieldRepository in integration APITest
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Jan Lysý
52b3e34839 Create controller for subscribe Subscribers
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
Rodrigo Primo
5ceb084c64 Refactor Forms::delete() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
49f0c054fd Refactor Forms::restore() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
e054f05222 Refactor Forms::trash() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
b3f82cccc5 Refactor Forms::duplicate() to use Doctrine instead of Paris
[MAILPOET-3038]
2021-04-07 09:48:53 +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
Jan Lysý
37a7e8e252 Add test for save custom field for Subscribers
[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
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
b17236b88c Fix typos in Segments API test
[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
Pavel Dohnal
95825793c0 Use doctrine for populator query
[MAILPOET-3481]
2021-03-24 11:05:17 +01:00
Rostislav Wolny
6bc557ecb0 Refactor dynamic segments bulk actions endpoint
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
2db223daf7 Refactor dynamic segments delete endpoint
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
e1eea57d32 Refactor dynamic segments trash and restore
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
f5df2601ef Refactor segment test data factories to work with Doctrine
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
9fdebdb4d7 Refactor api for creating/updating dynamic segments
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
40c9f047be Refactor segment filter data to embedded object
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
bd63ae508f Refactor dynamic segments get endpoint to doctrine
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
d42752fa99 Add test for dynamic segments listing response builder
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
54cee207ea Remove forgotten test debug code
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
d00e667b96 Check Custom HTML in form on save
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Jan Lysý
6337c37e45 Update tests for third party API
[MAILPOET-3307]
2021-02-03 11:01:38 +01:00
Jan Lysý
bcb62403a1 Remove phpstan errors from integration API tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
Pavel Dohnal
822550f3c0 Refactor dynamic segments listings to doctrine
[MAILPOET-3361]
2021-01-11 13:24:12 +01:00
Pavel Dohnal
b64525ecc5 Migrate tests
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
1d6cf56fd9 Refactor subscriber statistics to doctrine
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Rostislav Wolny
15d010c448 Fix static analysis issues in FormTest
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
Rostislav Wolny
baf67a96a1 Update subscription integration test
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
Rostislav Wolny
36a7cc0b25 Fix searching for segments to work with nested segments block
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00