Replace "new SettingsController()" with fetch from DI container
[MAILPOET-2436]
This commit is contained in:
committed by
Jack Kitterhing
parent
c91cd1255a
commit
d970dda637
@ -90,7 +90,7 @@ class ConfirmationEmailMailerTest extends \MailPoetTest {
|
||||
'send' => Stub\Expected::never(),
|
||||
]);
|
||||
|
||||
$settings = new SettingsController;
|
||||
$settings = SettingsController::getInstance();
|
||||
$settings->set(AuthorizedEmailsController::AUTHORIZED_EMAIL_ADDRESSES_ERROR_SETTING, ['invalid_sender_address' => 'email@email.com']);
|
||||
$settings->set(Mailer::MAILER_CONFIG_SETTING_NAME, ['method' => Mailer::METHOD_MAILPOET]);
|
||||
$sender = new ConfirmationEmailMailer($mailer);
|
||||
|
Reference in New Issue
Block a user