diff --git a/mod/forum/tests/mail_test.php b/mod/forum/tests/mail_test.php index d9c299fde17..c1508f7f0a4 100644 --- a/mod/forum/tests/mail_test.php +++ b/mod/forum/tests/mail_test.php @@ -932,8 +932,8 @@ class mod_forum_mail_testcase extends advanced_testcase { 'contents' => array( '~{$a', '~&(amp|lt|gt|quot|\#039);(?!course)', - 'Attachment example.txt:\n' . - 'https://www.example.com/moodle/pluginfile.php/\d*/mod_forum/attachment/\d*/example.txt\n', + 'Attachment example.txt:' . PHP_EOL . + 'https://www.example.com/moodle/pluginfile.php/\d*/mod_forum/attachment/\d*/example.txt' . PHP_EOL, 'Hello Moodle', 'Moodle Forum', 'Welcome.*Moodle', 'Love Moodle', '1\d1' ), ), @@ -991,12 +991,12 @@ class mod_forum_mail_testcase extends advanced_testcase { $newcase['expectations'][0]['contents'] = array( '~{$a', '~&(amp|lt|gt|quot|\#039);(?!course)', - 'Attachment example.txt:\n' . - 'https://www.example.com/moodle/pluginfile.php/\d*/mod_forum/attachment/\d*/example.txt\n', + 'Attachment example.txt:' . PHP_EOL . + 'https://www.example.com/moodle/pluginfile.php/\d*/mod_forum/attachment/\d*/example.txt' . PHP_EOL , 'Text and image', 'Moodle Forum', - 'Welcome to Moodle, *\n.*' + 'Welcome to Moodle, *' . PHP_EOL . '.*' .'https://www.example.com/moodle/pluginfile.php/\d+/mod_forum/post/\d+/' - .'Screen%20Shot%202016-03-22%20at%205\.54\.36%20AM%20%281%29\.png *\n.*!', + .'Screen%20Shot%202016-03-22%20at%205\.54\.36%20AM%20%281%29\.png *' . PHP_EOL . '.*!', 'Love Moodle', '1\d1'); $textcases['Text mail with text+image message i.e. @@PLUGINFILE@@ token handling'] = array('data' => $newcase);