Updating unit test for NewUserMailHelper, to test for autosumbitted

header

Signed-off-by: Bennet Becker <bbecker@pks.mpg.de>
This commit is contained in:
Bennet Becker 2022-12-23 13:53:20 +01:00 committed by Bennet Becker
parent 77569bae45
commit eec1ebb848
No known key found for this signature in database
GPG key ID: B4C66D4902D1FA86

View file

@ -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')