Use better name for method for setting misconfigured SMTP in tests

[MAILPOET-4254]
This commit is contained in:
Rostislav Wolny
2022-06-17 10:31:27 +02:00
committed by Veljko V
parent 1896281a3d
commit dfe62d9e70
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class Settings {
return $this;
}
public function withMisconfiguredSendingMethodSmtpMailhog() {
public function withMisconfiguredSendingMethodSmtp() {
$this->withSendingMethodSmtpMailhog();
$this->settings->set('mta.host', 'unknown_server');
}

View File

@ -10,7 +10,7 @@ class TransactionalEmailsCest {
$i->wantTo('Check that transactional email are sent even when MailPoet sending doesnt send');
$settings = new Settings();
$i->wantTo('Setup MailPoet to send transactional emails but having misconfigured SMTP settings.');
$settings->withMisconfiguredSendingMethodSmtpMailhog();
$settings->withMisconfiguredSendingMethodSmtp();
$settings->withTransactionEmailsViaMailPoet();
$i->wantTo('Create a new WP user and make sure transactional email were received');
$i->cli(['user', 'create', 'john_doe', 'john_doe@example.com', '--send-email']);