Add count of bounced emails into API response

[MAILPOET-3766]
This commit is contained in:
Jan Lysý
2021-09-14 12:07:16 +02:00
committed by Veljko V
parent 4f5a607ec0
commit ccedd3a112
3 changed files with 28 additions and 2 deletions

View File

@ -27,11 +27,12 @@ class NewslettersResponseBuilderTest extends \MailPoetTest {
'opened' => 6,
'clicked' => 4,
'unsubscribed' => 2,
'bounced' => 1,
'machineOpened' => 9,
'revenue' => null,
],
];
$statistics = new NewsletterStatistics(4, 6, 2, 10, null);
$statistics = new NewsletterStatistics(4, 6, 2, 1, 10, null);
$statistics->setMachineOpenCount(9);
$newsletterStatsRepository = Stub::make(NewsletterStatisticsRepository::class, [
'getTotalSentCount' => $stats['total_sent'],