mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Updating unit test for NewUserMailHelper, to test for autosumbitted
header Signed-off-by: Bennet Becker <bbecker@pks.mpg.de>
This commit is contained in:
parent
77569bae45
commit
eec1ebb848
1 changed files with 5 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue