Refactor ScheduledTasks::rescheduleProgressively() to use Doctrine

[MAILPOET-3844]
This commit is contained in:
Rodrigo Primo
2021-09-22 12:20:01 -03:00
committed by Veljko V
parent 82d4b8cb23
commit 2c78db9e04
14 changed files with 139 additions and 99 deletions

View File

@@ -3,6 +3,7 @@
namespace MailPoet\Test\Cron\Workers\KeyCheck;
use Codeception\Util\Stub;
use MailPoet\Cron\CronWorkerScheduler;
use MailPoet\Cron\Workers\KeyCheck\PremiumKeyCheck;
use MailPoet\Services\Bridge;
use MailPoet\Settings\SettingsController;
@@ -20,7 +21,8 @@ class PremiumKeyCheckTest extends \MailPoetTest {
parent::_before();
$this->settings = SettingsController::getInstance();
$this->premiumKey = '123457890abcdef';
$this->worker = new PremiumKeyCheck($this->settings);
$cronWorkerScheduler = $this->diContainer->get(CronWorkerScheduler::class);
$this->worker = new PremiumKeyCheck($this->settings, $cronWorkerScheduler);
}
public function testItRequiresPremiumKeyToBeSpecified() {