Sets mailer log error when queue cannot be saved during newsletter

pre-processing
This commit is contained in:
Vlad
2017-07-14 21:41:03 -04:00
parent fe9ae392f2
commit 34d09ce0c9
6 changed files with 29 additions and 7 deletions

View File

@@ -148,7 +148,7 @@ class MailerLogTest extends MailPoetTest {
expect($mailer_log['retry_at'])->null();
expect($mailer_log['error'])->null();
// retry attempt should be incremented, error logged, retry attempt scheduled
MailerLog::processSendingError($operation = 'send', $error = 'email rejected');
MailerLog::processError($operation = 'send', $error = 'email rejected');
$mailer_log = MailerLog::getMailerLog();
expect($mailer_log['retry_attempt'])->equals(1);
expect($mailer_log['retry_at'])->greaterThan(time());