Make WordPress Core


Ignore:
Timestamp:
05/26/2025 11:21:48 AM (15 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Replace uses of test.com in tests and the local development environment with the more appropriate example.com which is intended for testing and examples.

See #63167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment.php

    r56936 r60250  
    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                );
     
    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',
     
    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                );
     
    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>',
     
    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                );
     
    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;
     
    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();
Note: See TracChangeset for help on using the changeset viewer.