diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-15 10:31:58 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-15 10:31:58 +0100 |
commit | 72f4b34ad5816212fd0f8da374112edcc796b5dc (patch) | |
tree | 899d34ef1433a2cf4ed7997cce15156b86aefc9e /apps/settings | |
parent | 324126888ec32e4cb58acb70f87dba0994e602bc (diff) | |
download | nextcloud-server-72f4b34ad5816212fd0f8da374112edcc796b5dc.tar.gz nextcloud-server-72f4b34ad5816212fd0f8da374112edcc796b5dc.zip |
Fix tests depending on a trailing whitespace
Many editors remove trailing whitespaces, so avoid depending on them for
tests success.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/tests/Mailer/NewUserMailHelperTest.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/settings/tests/Mailer/NewUserMailHelperTest.php b/apps/settings/tests/Mailer/NewUserMailHelperTest.php index eddf6fa3811..252dcfd8057 100644 --- a/apps/settings/tests/Mailer/NewUserMailHelperTest.php +++ b/apps/settings/tests/Mailer/NewUserMailHelperTest.php @@ -369,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; @@ -603,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; @@ -824,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; |