Convert variable names to camel case
[MAILPOET-1796]
This commit is contained in:
@ -16,7 +16,7 @@ class SendingErrorHandlerTest extends \MailPoetTest {
|
||||
|
||||
public function _before() {
|
||||
parent::_before();
|
||||
$this->error_handler = new SendingErrorHandler();
|
||||
$this->errorHandler = new SendingErrorHandler();
|
||||
}
|
||||
|
||||
public function testItShouldProcessSoftErrorCorrectly() {
|
||||
@ -24,8 +24,8 @@ class SendingErrorHandlerTest extends \MailPoetTest {
|
||||
'john@doe.com',
|
||||
'john@rambo.com',
|
||||
];
|
||||
$subscriber_ids = [1, 2];
|
||||
$subscriber_errors = [
|
||||
$subscriberIds = [1, 2];
|
||||
$subscriberErrors = [
|
||||
new SubscriberError('john@doe.com', 'Subscriber Message'),
|
||||
new SubscriberError('john@rambo.com', null),
|
||||
];
|
||||
@ -33,10 +33,10 @@ class SendingErrorHandlerTest extends \MailPoetTest {
|
||||
MailerError::OPERATION_SEND,
|
||||
MailerError::LEVEL_SOFT,
|
||||
'Error Message',
|
||||
null, $subscriber_errors
|
||||
null, $subscriberErrors
|
||||
);
|
||||
|
||||
$sending_task = Stub::make(
|
||||
$sendingTask = Stub::make(
|
||||
SendingTask::class,
|
||||
[
|
||||
'saveSubscriberError' => Expected::exactly(
|
||||
@ -53,6 +53,6 @@ class SendingErrorHandlerTest extends \MailPoetTest {
|
||||
$this
|
||||
);
|
||||
|
||||
$this->error_handler->processError($error, $sending_task, $subscriber_ids, $subscribers);
|
||||
$this->errorHandler->processError($error, $sendingTask, $subscriberIds, $subscribers);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user