From 1057f43d1c14af1611119a72f68df578b997d7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Wed, 21 Aug 2019 15:44:55 +0200 Subject: [PATCH] Add sender settings to test defaults [MAILPOET-2209] --- tests/DataFactories/Settings.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/DataFactories/Settings.php b/tests/DataFactories/Settings.php index 7b70b057c7..09ede191b9 100644 --- a/tests/DataFactories/Settings.php +++ b/tests/DataFactories/Settings.php @@ -18,6 +18,7 @@ class Settings { function withDefaultSettings() { $this->withCronTriggerMethod('WordPress'); $this->withSendingMethodSmtpMailhog(); + $this->withSender('admin', 'wp@example.com'); $this->withSkippedTutorials(); $this->withCookieRevenueTracking(); } @@ -27,6 +28,11 @@ class Settings { return $this; } + function withSender($name, $address) { + $this->settings->set('sender.name', $name); + $this->settings->set('sender.address', $address); + } + function withConfirmationEmailSubject($subject = null) { if ($subject === null) { $subject = sprintf('Confirm your subscription to %1$s', get_option('blogname'));