]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests depending on a trailing whitespace 35156/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 15 Nov 2022 09:31:58 +0000 (10:31 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 15 Nov 2022 09:31:58 +0000 (10:31 +0100)
Many editors remove trailing whitespaces, so avoid depending on them for
 tests success.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/settings/tests/Mailer/NewUserMailHelperTest.php

index eddf6fa3811aae38b4cb3c1ec4f8bbc1a66443e0..252dcfd805763a364c88f530adadee60a2bc2253 100644 (file)
@@ -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;