diff options
author | Bennet Becker <bbecker@pks.mpg.de> | 2022-12-23 13:53:20 +0100 |
---|---|---|
committer | Bennet Becker <dev@bennet.cc> | 2022-12-23 19:27:09 +0100 |
commit | eec1ebb84810c20e11fc483782c6ec8403bf84b2 (patch) | |
tree | efce38bee53182012e919a9105ec360f8b4015a2 /apps/settings | |
parent | 77569bae4511c057e3023c01fa247aae60a0a3a3 (diff) | |
download | nextcloud-server-eec1ebb84810c20e11fc483782c6ec8403bf84b2.tar.gz nextcloud-server-eec1ebb84810c20e11fc483782c6ec8403bf84b2.zip |
Updating unit test for NewUserMailHelper, to test for autosumbitted
header
Signed-off-by: Bennet Becker <bbecker@pks.mpg.de>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/tests/Mailer/NewUserMailHelperTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings/tests/Mailer/NewUserMailHelperTest.php b/apps/settings/tests/Mailer/NewUserMailHelperTest.php index 252dcfd8057..efb7ca9a29b 100644 --- a/apps/settings/tests/Mailer/NewUserMailHelperTest.php +++ b/apps/settings/tests/Mailer/NewUserMailHelperTest.php @@ -42,6 +42,7 @@ use OCP\IL10N; use OCP\IURLGenerator; use OCP\IUser; use OCP\L10N\IFactory; +use OCP\Mail\AutoSubmittedValue; use OCP\Mail\IEMailTemplate; use OCP\Mail\IMailer; use OCP\Security\ICrypto; @@ -867,6 +868,10 @@ EOF; ->expects($this->once()) ->method('useTemplate') ->with($emailTemplate); + $message + ->expects($this->once()) + ->method('setAutoSubmitted') + ->with(AutoSubmittedValue::AUTO_GENERATED); $this->defaults ->expects($this->once()) ->method('getName') |