Commit Graph

248 Commits

Author SHA1 Message Date
aeeceeeb8d Use Newsletter\Url as service
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
f7b77cf75d Remove FormRepository from SettingsController
[MAILPOET-3643]
2021-06-07 14:14:50 +02:00
4d5630b1ca Remove ScheduledTaskRepository from SettingsController
[MAILPOET-3643]
2021-06-07 14:14:50 +02:00
a0a0313c46 Use WP transient for lock running migrations
[MAILPOET-3537]
2021-05-24 14:59:40 +02:00
d9ec70dfe6 Refactor form api test to doctrine
[MAILPOET-3037]
2021-05-19 11:00:18 +02:00
61d73c1b6c Remove unused method
[MAILPOET-3037]
2021-05-19 11:00:18 +02:00
28060c8e12 Reschedule existing subscriber score task on reset
[MAILPOET-3533]
2021-05-12 14:42:22 +02:00
5f5e5d0860 Fix backend error messages
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
025d588591 Fix tests
[MAILPOET-3525]
2021-04-26 13:46:23 +02:00
3d5905c288 Remove usage old model from FormsResponseBuilderTest
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
31bff0efb4 Remove rest of usage old model SubscriberIP
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
a715aa9b76 Replace usages of StatisticsForms with Doctrine
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
52b3e34839 Create controller for subscribe Subscribers
[MAILPOET-3032]
2021-04-12 14:26:36 +02:00
5ceb084c64 Refactor Forms::delete() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
49f0c054fd Refactor Forms::restore() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
e054f05222 Refactor Forms::trash() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
b3f82cccc5 Refactor Forms::duplicate() to use Doctrine instead of Paris
[MAILPOET-3038]
2021-04-07 09:48:53 +02:00
faf714e832 Remove more uses of the old models inside FormsTest
[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
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
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
37a7e8e252 Add test for save custom field for Subscribers
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
da5aefa89a Add calling clear in SubscribersTest
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
dcc70b3865 Use doctrine for save Subscriber
[MAILPOET-3031]
2021-03-29 15:22:53 +02:00
3f434aae76 Add acceptance tests for blocking trashing active segments
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
51e5206ed8 Fix trashing check to check also welcome and automatic emails
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
fc66381da2 Remove client side checks for trashing lists
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
271c0a0ec6 Block trashing of a active used single list on API
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
b17236b88c Fix typos in Segments API test
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
f066bc8fdd Disallow trashing single dynamic segment with active email
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
95825793c0 Use doctrine for populator query
[MAILPOET-3481]
2021-03-24 11:05:17 +01:00
6bc557ecb0 Refactor dynamic segments bulk actions endpoint
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
2db223daf7 Refactor dynamic segments delete endpoint
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
e1eea57d32 Refactor dynamic segments trash and restore
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
f5df2601ef Refactor segment test data factories to work with Doctrine
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
9fdebdb4d7 Refactor api for creating/updating dynamic segments
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
40c9f047be Refactor segment filter data to embedded object
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
bd63ae508f Refactor dynamic segments get endpoint to doctrine
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
d42752fa99 Add test for dynamic segments listing response builder
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
54cee207ea Remove forgotten test debug code
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
d00e667b96 Check Custom HTML in form on save
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
bcb62403a1 Remove phpstan errors from integration API tests
[MAILPOET-3235]
2021-01-18 14:39:42 +01:00
822550f3c0 Refactor dynamic segments listings to doctrine
[MAILPOET-3361]
2021-01-11 13:24:12 +01:00
b64525ecc5 Migrate tests
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
1d6cf56fd9 Refactor subscriber statistics to doctrine
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
15d010c448 Fix static analysis issues in FormTest
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
baf67a96a1 Update subscription integration test
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
36a7cc0b25 Fix searching for segments to work with nested segments block
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
46f9860990 Add test for segment ids search in form save API
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
83cb272555 Use method createOrUpdate from SegmentRepository in tests
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
37cef4fb34 Remove usage of Idiorm from Segments test
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00