Fix getting subscribers without a list

[MAILPOET-3285]
This commit is contained in:
Jan Lysý
2021-01-06 17:34:25 +01:00
committed by Veljko V
parent e66ad88146
commit 83eecc9dc5
3 changed files with 21 additions and 8 deletions

View File

@ -257,6 +257,11 @@ class SubscriberListingRepositoryTest extends \MailPoetTest {
$subscriberOnDeletedList->setStatus(SubscriberEntity::STATUS_SUBSCRIBED);
$this->createSubscriberSegmentEntity($deletedList, $subscriberOnDeletedList);
$subscriberInBothLists = $this->createSubscriberEntity();
$subscriberInBothLists->setStatus(SubscriberEntity::STATUS_SUBSCRIBED);
$this->createSubscriberSegmentEntity($list, $subscriberInBothLists);
$this->createSubscriberSegmentEntity($deletedList, $subscriberInBothLists);
$subscriberWithoutList = $this->createSubscriberEntity();
$this->entityManager->flush();