Add test for respository

[MAILPOET-2657]
This commit is contained in:
Pavel Dohnal
2020-08-04 13:09:21 +02:00
committed by Veljko V
parent 9f615548b2
commit 33e2c3d9d2
6 changed files with 180 additions and 58 deletions

View File

@@ -166,7 +166,7 @@ class Subscribers extends APIEndpoint {
$listingData['filters']['segment'] = $this->wp->applyFilters(
'mailpoet_subscribers_listings_filters_segments',
$listingData['filters']['segment']
$listingData['filters']['segment'] ?? []
);
return $this->successResponse($result, [