Make WordPress Core

Changeset 60250


Ignore:
Timestamp:
05/26/2025 11:21:48 AM (4 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

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/e2e/specs/install.test.js

    r58430 r60250  
    5959        await page.getByLabel( 'Password', { exact: true } ).fill( 'password' );
    6060        await page.getByLabel( /Confirm use of weak password/ ).check()
    61         await page.getByLabel( 'Your Email' ).fill( 'test@test.com' );
     61        await page.getByLabel( 'Your Email' ).fill( 'test@example.com' );
    6262
    6363        await page.getByRole( 'button', { name: 'Install WordPress' } ).click();
  • trunk/tests/phpunit/tests/admin/wpPluginsListTable.php

    r56070 r60250  
    5858                'user_login' => 'test_wp_plugins_list_table',
    5959                'user_pass'  => 'password',
    60                 'user_email' => 'testadmin@test.com',
     60                'user_email' => 'testadmin@example.com',
    6161            )
    6262        );
  • 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();
  • trunk/tests/phpunit/tests/user.php

    r59633 r60250  
    5050        self::$editor_id  = $factory->user->create(
    5151            array(
    52                 'user_email' => 'test@test.com',
     52                'user_email' => 'test@example.com',
    5353                'role'       => 'editor',
    5454            )
     
    821821    public function test_validate_username_string() {
    822822        $this->assertTrue( validate_username( 'johndoe' ) );
    823         $this->assertTrue( validate_username( 'test@test.com' ) );
     823        $this->assertTrue( validate_username( 'test@example.com' ) );
    824824    }
    825825
     
    10361036            array(
    10371037                'user_login' => 'test',
    1038                 'user_email' => 'test@example.com',
     1038                'user_email' => 'urltest@example.com',
    10391039                'user_pass'  => 'password',
    10401040                'user_url'   => $user_url,
     
    12571257        $userdata = array(
    12581258            'ID'         => self::$editor_id,
    1259             'user_email' => 'test@TEST.com',
     1259            'user_email' => 'test@EXAMPLE.com',
    12601260        );
    12611261        $update   = wp_update_user( $userdata );
     
    12711271        $userdata = array(
    12721272            'ID'         => self::$editor_id,
    1273             'user_email' => 'test2@test.com',
     1273            'user_email' => 'test2@example.com',
    12741274        );
    12751275        $update   = wp_update_user( $userdata );
     
    12801280        // Verify that the email address has been updated.
    12811281        $user = get_userdata( self::$editor_id );
    1282         $this->assertSame( $user->user_email, 'test2@test.com' );
     1282        $this->assertSame( $user->user_email, 'test2@example.com' );
    12831283    }
    12841284
     
    19791979     */
    19801980    public function test_wp_user_personal_data_exporter_no_user() {
    1981         $actual = wp_user_personal_data_exporter( 'not-a-user-email@test.com' );
     1981        $actual = wp_user_personal_data_exporter( 'not-a-user-email@example.com' );
    19821982
    19831983        $expected = array(
  • trunk/tools/local-env/scripts/install.js

    r59769 r60250  
    4343        wp_cli( 'db reset --yes' );
    4444        const installCommand = process.env.LOCAL_MULTISITE === 'true'  ? 'multisite-install' : 'install';
    45         wp_cli( `core ${ installCommand } --title="WordPress Develop" --admin_user=admin --admin_password=password --admin_email=test@test.com --skip-email --url=http://localhost:${process.env.LOCAL_PORT}` );
     45        wp_cli( `core ${ installCommand } --title="WordPress Develop" --admin_user=admin --admin_password=password --admin_email=test@example.com --skip-email --url=http://localhost:${process.env.LOCAL_PORT}` );
    4646    } );
    4747
Note: See TracChangeset for help on using the changeset viewer.