summaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-11-15 10:31:58 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-11-15 10:31:58 +0100
commit72f4b34ad5816212fd0f8da374112edcc796b5dc (patch)
tree899d34ef1433a2cf4ed7997cce15156b86aefc9e /apps/settings
parent324126888ec32e4cb58acb70f87dba0994e602bc (diff)
downloadnextcloud-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.php12
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;