Extract scheduling logic from SimpleWorker

[MAILPOET-2538]
This commit is contained in:
Jan Jakeš
2019-11-19 11:19:20 +01:00
committed by Jack Kitterhing
parent 59ac38cabd
commit afecae15f5
4 changed files with 53 additions and 20 deletions

View File

@@ -121,7 +121,10 @@ class SimpleWorkerTest extends \MailPoetTest {
function testItCanInitBeforeProcessing() {
$worker = Stub::make(
$this->worker,
['init' => Expected::once()],
[
'init' => Expected::once(),
'schedule' => Expected::once(),
],
$this
);
$worker->process();