diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-11-15 13:04:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 13:04:51 +0100 |
commit | 4893d5e746f86df3fc816e9827a6863ae3bc8f7e (patch) | |
tree | 1ae70afa1325178a560cdd0004ffae95521ce87f /apps/settings | |
parent | a57762576728d4bea0ed709ad10fd8e2666aaf28 (diff) | |
parent | 72f4b34ad5816212fd0f8da374112edcc796b5dc (diff) | |
download | nextcloud-server-4893d5e746f86df3fc816e9827a6863ae3bc8f7e.tar.gz nextcloud-server-4893d5e746f86df3fc816e9827a6863ae3bc8f7e.zip |
Merge pull request #35156 from nextcloud/fix/fix-tests-for-8.2
Fix dynamic properties and other problems in tests for PHP 8.2
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/tests/Mailer/NewUserMailHelperTest.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/settings/tests/Mailer/NewUserMailHelperTest.php b/apps/settings/tests/Mailer/NewUserMailHelperTest.php index 2a9c1ee58ec..252dcfd8057 100644 --- a/apps/settings/tests/Mailer/NewUserMailHelperTest.php +++ b/apps/settings/tests/Mailer/NewUserMailHelperTest.php @@ -55,6 +55,8 @@ class NewUserMailHelperTest extends TestCase { private $urlGenerator; /** @var IL10N|\PHPUnit\Framework\MockObject\MockObject */ private $l10n; + /** @var IFactory|\PHPUnit\Framework\MockObject\MockObject */ + private $l10nFactory; /** @var IMailer|\PHPUnit\Framework\MockObject\MockObject */ private $mailer; /** @var ISecureRandom|\PHPUnit\Framework\MockObject\MockObject */ @@ -367,7 +369,9 @@ Set your password: https://example.com/resetPassword/MySuperLongSecureRandomToke Install Client: https://nextcloud.com/install/#install-clients --- +EOF; + $expectedTextBody .= "\n-- \n"; + $expectedTextBody .= <<<EOF TestCloud This is an automatically sent email, please do not reply. EOF; @@ -601,7 +605,9 @@ Go to TestCloud: https://example.com/ Install Client: https://nextcloud.com/install/#install-clients --- +EOF; + $expectedTextBody .= "\n-- \n"; + $expectedTextBody .= <<<EOF TestCloud This is an automatically sent email, please do not reply. EOF; @@ -822,7 +828,9 @@ Go to TestCloud: https://example.com/ Install Client: https://nextcloud.com/install/#install-clients --- +EOF; + $expectedTextBody .= "\n-- \n"; + $expectedTextBody .= <<<EOF TestCloud This is an automatically sent email, please do not reply. EOF; |