Add sender settings to test defaults
[MAILPOET-2209]
This commit is contained in:
@@ -18,6 +18,7 @@ class Settings {
|
|||||||
function withDefaultSettings() {
|
function withDefaultSettings() {
|
||||||
$this->withCronTriggerMethod('WordPress');
|
$this->withCronTriggerMethod('WordPress');
|
||||||
$this->withSendingMethodSmtpMailhog();
|
$this->withSendingMethodSmtpMailhog();
|
||||||
|
$this->withSender('admin', 'wp@example.com');
|
||||||
$this->withSkippedTutorials();
|
$this->withSkippedTutorials();
|
||||||
$this->withCookieRevenueTracking();
|
$this->withCookieRevenueTracking();
|
||||||
}
|
}
|
||||||
@@ -27,6 +28,11 @@ class Settings {
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function withSender($name, $address) {
|
||||||
|
$this->settings->set('sender.name', $name);
|
||||||
|
$this->settings->set('sender.address', $address);
|
||||||
|
}
|
||||||
|
|
||||||
function withConfirmationEmailSubject($subject = null) {
|
function withConfirmationEmailSubject($subject = null) {
|
||||||
if ($subject === null) {
|
if ($subject === null) {
|
||||||
$subject = sprintf('Confirm your subscription to %1$s', get_option('blogname'));
|
$subject = sprintf('Confirm your subscription to %1$s', get_option('blogname'));
|
||||||
|
Reference in New Issue
Block a user