Show error notice when email is sent from unauthorized email

[MAILPOET-1787]
This commit is contained in:
Ján Mikláš
2019-02-19 16:45:47 +01:00
committed by M. Shull
parent 79bd178123
commit f5feb032fe
8 changed files with 56 additions and 10 deletions

View File

@ -68,7 +68,7 @@ class MailPoetMapperTest extends \MailPoetTest {
$error = $this->mapper->getErrorForResult($api_result, $this->subscribers);
expect($error)->isInstanceOf(MailerError::class);
expect($error->getOperation())->equals(MailerError::OPERATION_SEND);
expect($error->getOperation())->equals(MailerError::OPERATION_AUTHORIZATION);
expect($error->getLevel())->equals(MailerError::LEVEL_HARD);
expect($error->getMessage())->contains('The MailPoet Sending Service did not send your latest email because the address');
}