Fix links

[MAILPOET-1571]
This commit is contained in:
Pavel Dohnal
2019-01-22 13:20:17 +01:00
parent 9eeda50b07
commit 06370ea245
3 changed files with 6 additions and 4 deletions

View File

@ -30,6 +30,7 @@ class WorkerTest extends \MailPoetTest {
\ORM::raw_execute('TRUNCATE ' . Newsletter::$_table);
\ORM::raw_execute('TRUNCATE ' . ScheduledTask::$_table);
\ORM::raw_execute('TRUNCATE ' . SendingQueue::$_table);
\ORM::raw_execute('TRUNCATE ' . StatsNotification::$_table);
$this->mailer = $this->createMock(Mailer::class);
$this->renderer = $this->createMock(Renderer::class);
$this->stats_notifications = new Worker($this->mailer, $this->renderer);
@ -212,7 +213,7 @@ class WorkerTest extends \MailPoetTest {
'count_processed' => 15,
]);
$this->mailer->expects($this->once())
$this->mailer->expects($this->exactly(2))
->method('send');
$this->stats_notifications->process();