Make method more clear

[MAILPOET-2439]
This commit is contained in:
Pavel Dohnal
2019-10-30 10:53:25 +01:00
committed by Jack Kitterhing
parent f1934ff880
commit 5b6b21b23f
3 changed files with 7 additions and 10 deletions

View File

@ -232,7 +232,7 @@ class SchedulerTest extends \MailPoetUnitTest {
->expects($this->once())
->method('findByNewsletterId')
->with($newsletter_id)
->willReturn([new ScheduledTaskEntity()]);
->willReturn(new StatsNotificationEntity(new NewsletterEntity(), new ScheduledTaskEntity()));
$this->entityManager
->expects($this->never())
->method('persist');