Skip to content

Commit

Permalink
Updating unit test for NewUserMailHelper, to test for autosumbitted
Browse files Browse the repository at this point in the history
header

Signed-off-by: Bennet Becker <dev@bennet.cc>
  • Loading branch information
bennet0496 committed Dec 23, 2022
1 parent c543c57 commit 8afe72e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/settings/tests/Mailer/NewUserMailHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
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;
Expand Down Expand Up @@ -867,6 +868,10 @@ public function testSendMail() {
->expects($this->once())
->method('useTemplate')
->with($emailTemplate);
$message
->expects($this->once())
->method('setAutoSubmitted')
->with(AutoSubmittedValue::AUTO_GENERATED);
$this->defaults
->expects($this->once())
->method('getName')
Expand Down

0 comments on commit 8afe72e

Please sign in to comment.