@@ -21,7 +21,7 @@ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
2121 'role ' => 'author ' ,
2222 'user_login ' => 'test_wp_user_get ' ,
2323 'user_pass ' => 'password ' ,
24- 'user_email ' => 'test@test .com ' ,
24+ 'user_email ' => 'author@example .com ' ,
2525 )
2626 );
2727
@@ -95,7 +95,7 @@ public function test_update_comment_from_privileged_user_by_privileged_user() {
9595 'comment_post_ID ' => self ::$ post_id ,
9696 'comment_author ' => 'Author ' ,
9797 'comment_author_url ' => 'http://example.localhost/ ' ,
98- 'comment_author_email ' => 'test@test .com ' ,
98+ 'comment_author_email ' => 'author@example .com ' ,
9999 'user_id ' => $ admin_id_1 ,
100100 'comment_content ' => 'This is a comment ' ,
101101 )
@@ -108,7 +108,7 @@ public function test_update_comment_from_privileged_user_by_privileged_user() {
108108 'role ' => 'administrator ' ,
109109 'user_login ' => 'test_wp_admin_get ' ,
110110 'user_pass ' => 'password ' ,
111- 'user_email ' => 'testadmin@test .com ' ,
111+ 'user_email ' => 'testadmin@example .com ' ,
112112 )
113113 );
114114
@@ -139,7 +139,7 @@ public function test_update_comment_from_unprivileged_user_by_privileged_user()
139139 'comment_post_ID ' => self ::$ post_id ,
140140 'comment_author ' => 'Author ' ,
141141 'comment_author_url ' => 'http://example.localhost/ ' ,
142- 'comment_author_email ' => 'test@test .com ' ,
142+ 'comment_author_email ' => 'author@example .com ' ,
143143 'user_id ' => self ::$ user_id ,
144144 'comment_content ' => '<a href="http://example.localhost/something.html">click</a> ' ,
145145 )
@@ -152,7 +152,7 @@ public function test_update_comment_from_unprivileged_user_by_privileged_user()
152152 'role ' => 'administrator ' ,
153153 'user_login ' => 'test_wp_admin_get ' ,
154154 'user_pass ' => 'password ' ,
155- 'user_email ' => 'testadmin@test .com ' ,
155+ 'user_email ' => 'testadmin@example .com ' ,
156156 )
157157 );
158158
@@ -1445,10 +1445,10 @@ public function try_sending_author_notification( $comment, $post ) {
14451445 // Post authors possibly notified when a comment is approved on their post.
14461446 wp_set_comment_status ( $ comment , 'approve ' );
14471447
1448- // Check to see if a notification email was sent to the post author `test@test .com`.
1448+ // Check to see if a notification email was sent to the post author `author@example .com`.
14491449 if ( isset ( $ GLOBALS ['phpmailer ' ]->mock_sent )
14501450 && ! empty ( $ GLOBALS ['phpmailer ' ]->mock_sent )
1451- && 'test@test .com ' === $ GLOBALS ['phpmailer ' ]->mock_sent [0 ]['to ' ][0 ][0 ]
1451+ && 'author@example .com ' === $ GLOBALS ['phpmailer ' ]->mock_sent [0 ]['to ' ][0 ][0 ]
14521452 ) {
14531453 $ email_sent_when_comment_approved = true ;
14541454 } else {
@@ -1467,10 +1467,10 @@ public function try_sending_author_notification( $comment, $post ) {
14671467 );
14681468 wp_new_comment ( $ data );
14691469
1470- // Check to see if a notification email was sent to the post author `test@test .com`.
1470+ // Check to see if a notification email was sent to the post author `author@example .com`.
14711471 if ( isset ( $ GLOBALS ['phpmailer ' ]->mock_sent ) &&
14721472 ! empty ( $ GLOBALS ['phpmailer ' ]->mock_sent ) &&
1473- 'test@test .com ' === $ GLOBALS ['phpmailer ' ]->mock_sent [0 ]['to ' ][0 ][0 ] ) {
1473+ 'author@example .com ' === $ GLOBALS ['phpmailer ' ]->mock_sent [0 ]['to ' ][0 ][0 ] ) {
14741474 $ email_sent_when_comment_added = true ;
14751475 reset_phpmailer_instance ();
14761476 } else {
0 commit comments