Merge pull request #24999 from nextcloud/bugfix/noid/email-footer-language

Set the user language when adding the footer
This commit is contained in:
Roeland Jago Douma 2021-01-07 19:44:36 +01:00 committed by GitHub
commit 5020c73d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -159,7 +159,7 @@ class NewUserMailHelper {
);
}
$emailTemplate->addFooter();
$emailTemplate->addFooter('', $lang);
return $emailTemplate;
}

View File

@ -139,7 +139,7 @@ class NewUserMailHelperTest extends TestCase {
$this->timeFactory
->expects($this->once())
->method('getTime')
->willReturn('12345');
->willReturn(12345);
/** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
$user = $this->createMock(IUser::class);
$user
@ -371,6 +371,7 @@ Welcome to your TestCloud account, you can add, protect, and share your data.
Your username is: john
Set your password: https://example.com/resetPassword/MySuperLongSecureRandomToken
Install Client: https://nextcloud.com/install/#install-clients