@@ -993,8 +993,8 @@ public function forum_post_email_templates_provider() {
993993 'contents ' => array (
994994 '~{$a ' ,
995995 '~&(amp|lt|gt|quot|\#039);(?!course) ' ,
996- 'Attachments example.txt:\n ' .
997- $ CFG ->wwwroot .'/pluginfile.php/\d*/mod_hsuforum/attachment/\d*/example.txt\n ' ,
996+ 'Attachments example.txt:\r\ n ' .
997+ $ CFG ->wwwroot .'/pluginfile.php/\d*/mod_hsuforum/attachment/\d*/example.txt\r\ n ' ,
998998 'Hello Moodle ' , 'Moodle Forum ' , 'Welcome.*Moodle ' , 'Love Moodle ' , '1\d1 '
999999 ),
10001000 ),
@@ -1052,12 +1052,12 @@ public function forum_post_email_templates_provider() {
10521052 $ newcase ['expectations ' ][0 ]['contents ' ] = array (
10531053 '~{$a ' ,
10541054 '~&(amp|lt|gt|quot|\#039);(?!course) ' ,
1055- 'Attachments example.txt:\n ' .
1056- $ CFG ->wwwroot .'/pluginfile.php/\d*/mod_hsuforum/attachment/\d*/example.txt\n ' ,
1055+ 'Attachments example.txt:\r\ n ' .
1056+ $ CFG ->wwwroot .'/pluginfile.php/\d*/mod_hsuforum/attachment/\d*/example.txt\r\ n ' ,
10571057 'Text and image ' , 'Moodle Forum ' ,
1058- 'Welcome to Moodle, *\n.* '
1058+ 'Welcome to Moodle, *\r\ n.* '
10591059 .$ CFG ->wwwroot .'/pluginfile.php/\d+/mod_hsuforum/post/\d+/ '
1060- .'Screen%20Shot%202016-03-22%20at%205\.54\.36%20AM%20%281%29\.png *\n.*! ' ,
1060+ .'Screen%20Shot%202016-03-22%20at%205\.54\.36%20AM%20%281%29\.png *\r\ n.*! ' ,
10611061 'Love Moodle ' , '1\d1 ' );
10621062 $ textcases ['Text mail with text+image message i.e. @@PLUGINFILE@@ token handling ' ] = array ('data ' => $ newcase );
10631063
@@ -1118,7 +1118,7 @@ public function forum_post_email_templates_provider() {
11181118 * @param array $data provider samples.
11191119 */
11201120 public function test_forum_post_email_templates ($ data ) {
1121- $ this ->markTestSkipped ('To be reviewed in INT-19113 ' );
1121+ $ this ->markTestSkipped ('This test only passes on PHP 8.1. Please unskip once we are fully on PHP 8.1 or greater ' );
11221122 global $ DB , $ CFG ;
11231123 // Disabled to avoid adding footer with Mobile Web Services info on emails.
11241124 $ CFG ->enablemobilewebservice = 0 ;
0 commit comments