Refactor sending task variable name and add typehint

[MAILPOET-1154]
This commit is contained in:
Rostislav Wolny
2018-08-29 15:29:20 +02:00
parent 8a2e9d2170
commit 8cf5d17cfd
2 changed files with 8 additions and 8 deletions

View File

@@ -573,10 +573,10 @@ class SendingQueueTest extends \MailPoetTest {
}
function testItPausesSendingWhenProcessedSubscriberListCannotBeUpdated() {
$queue = Mock::double(new \stdClass(), array(
$sending_task = Mock::double(SendingTask::create(), array(
'updateProcessedSubscribers' => false
));
$queue->id = 100;
$sending_task->id = 100;
$sending_queue_worker = Stub::make(new SendingQueueWorker());
$sending_queue_worker->__construct(
$timer = false,
@@ -589,7 +589,7 @@ class SendingQueueTest extends \MailPoetTest {
);
try {
$sending_queue_worker->sendNewsletters(
$queue,
$sending_task->getObject(),
$prepared_subscribers = array(),
$prepared_newsletters = false,
$prepared_subscribers = false,