Changeset 60250 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 05/26/2025 11:21:48 AM (8 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/comment.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r56936 r60250 22 22 'user_login' => 'test_wp_user_get', 23 23 'user_pass' => 'password', 24 'user_email' => ' test@test.com',24 'user_email' => 'author@example.com', 25 25 ) 26 26 ); … … 96 96 'comment_author' => 'Author', 97 97 'comment_author_url' => 'http://example.localhost/', 98 'comment_author_email' => ' test@test.com',98 'comment_author_email' => 'author@example.com', 99 99 'user_id' => $admin_id_1, 100 100 'comment_content' => 'This is a comment', … … 109 109 'user_login' => 'test_wp_admin_get', 110 110 'user_pass' => 'password', 111 'user_email' => 'testadmin@ test.com',111 'user_email' => 'testadmin@example.com', 112 112 ) 113 113 ); … … 140 140 'comment_author' => 'Author', 141 141 'comment_author_url' => 'http://example.localhost/', 142 'comment_author_email' => ' test@test.com',142 'comment_author_email' => 'author@example.com', 143 143 'user_id' => self::$user_id, 144 144 'comment_content' => '<a href="http://example.localhost/something.html">click</a>', … … 153 153 'user_login' => 'test_wp_admin_get', 154 154 'user_pass' => 'password', 155 'user_email' => 'testadmin@ test.com',155 'user_email' => 'testadmin@example.com', 156 156 ) 157 157 ); … … 1446 1446 wp_set_comment_status( $comment, 'approve' ); 1447 1447 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`. 1449 1449 if ( isset( $GLOBALS['phpmailer']->mock_sent ) 1450 1450 && ! 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] 1452 1452 ) { 1453 1453 $email_sent_when_comment_approved = true; … … 1468 1468 wp_new_comment( $data ); 1469 1469 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`. 1471 1471 if ( isset( $GLOBALS['phpmailer']->mock_sent ) && 1472 1472 ! 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] ) { 1474 1474 $email_sent_when_comment_added = true; 1475 1475 reset_phpmailer_instance();
Note: See TracChangeset
for help on using the changeset viewer.