Fix integration tests compatibility
[MAILPOET-4001]
This commit is contained in:
@@ -15,6 +15,7 @@ use MailPoetVendor\Carbon\Carbon;
|
||||
require_once('KeyCheckWorkerMockImplementation.php');
|
||||
|
||||
class KeyCheckWorkerTest extends \MailPoetTest {
|
||||
/** @var MockKeyCheckWorker */
|
||||
public $worker;
|
||||
|
||||
/** @var ScheduledTaskFactory */
|
||||
|
@@ -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,
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user