Add tests for get subscribers in ImportExportRepository

[MAILPOET-3376]
This commit is contained in:
Jan Lysý
2021-02-23 11:23:02 +01:00
committed by Veljko V
parent 4a2af719db
commit 8450beaf10
2 changed files with 190 additions and 17 deletions

View File

@ -208,6 +208,7 @@ class ImportExportRepository {
->leftJoin($subscriberSegmentTable, $segmentTable, $segmentTable, "{$segmentTable}.id = {$subscriberSegmentTable}.segment_id")
->andWhere("{$subscriberTable}.deleted_at IS NULL")
->groupBy("{$subscriberTable}.id, {$segmentTable}.id")
->orderBy("{$subscriberTable}.id")
->setFirstResult($offset)
->setMaxResults($limit);
}