Fix integration tests compatibility

[MAILPOET-4001]
This commit is contained in:
Jan Lysý
2022-01-07 12:20:22 +01:00
committed by Veljko V
parent 18827ed490
commit d0ea442300
15 changed files with 22 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ use MailPoetVendor\Carbon\Carbon;
require_once('KeyCheckWorkerMockImplementation.php');
class KeyCheckWorkerTest extends \MailPoetTest {
/** @var MockKeyCheckWorker */
public $worker;
/** @var ScheduledTaskFactory */

View File

@@ -1042,7 +1042,7 @@ class SendingQueueTest extends \MailPoetTest {
return $queue;
}
private function getSendingQueueWorker($newsletterRepositoryMock = null, $mailerMock = null) {
private function getSendingQueueWorker($newsletterRepositoryMock = null, $mailerMock = null): SendingQueueWorker {
return new SendingQueueWorker(
$this->sendingErrorHandler,
$this->sendingThrottlingHandler,

View File

@@ -177,8 +177,8 @@ class AutomatedEmailsTest extends \MailPoetTest {
->method('render')
->with(
$this->anything(),
$this->callback(function($context){
return strpos($context['linkSettings'], 'mailpoet-settings');
$this->callback(function($context): bool {
return (bool)strpos($context['linkSettings'], 'mailpoet-settings');
}));
$this->cronWorkerRunner->run($this->statsNotifications);