Use better name for method for setting misconfigured SMTP in tests
[MAILPOET-4254]
This commit is contained in:
committed by
Veljko V
parent
1896281a3d
commit
dfe62d9e70
@ -126,7 +126,7 @@ class Settings {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function withMisconfiguredSendingMethodSmtpMailhog() {
|
||||
public function withMisconfiguredSendingMethodSmtp() {
|
||||
$this->withSendingMethodSmtpMailhog();
|
||||
$this->settings->set('mta.host', 'unknown_server');
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ class TransactionalEmailsCest {
|
||||
$i->wantTo('Check that transactional email are sent even when MailPoet sending doesn‘t 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']);
|
||||
|
Reference in New Issue
Block a user