You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/includes/class-test-mailer.php
+66Lines changed: 66 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -307,4 +307,70 @@ function ( $args ) {
307
307
remove_all_filters( 'wp_mail' );
308
308
wp_delete_user( $user_id );
309
309
}
310
+
311
+
/**
312
+
* Data provider for direct message notification text.
313
+
*
314
+
* @return array
315
+
*/
316
+
publicfunctiondirect_message_text_provider() {
317
+
returnarray(
318
+
'HTML entities' => array(
319
+
json_decode( '"<p>Interesting story from <span class=\"h-card\" translate=\"no\"><a href=\"https:\/\/example.com\/@test\" class=\"u-url mention\">@<span>test<\/span><\/a><\/span> about people who don't own their own domain.<\/p><p>"This is not a new issue, of course, but Service\u2019s implementation shows limitations."<\/p>"' ),
320
+
'Interesting story from @test about people who don\'t own their own domain.' . PHP_EOL . PHP_EOL . '"This is not a new issue, of course, but Service’s implementation shows limitations."',
0 commit comments