Extract scheduling logic from SimpleWorker
[MAILPOET-2538]
This commit is contained in:
committed by
Jack Kitterhing
parent
59ac38cabd
commit
afecae15f5
@@ -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();
|
||||
|
Reference in New Issue
Block a user