Make WordPress Core

Changeset 59304


Ignore:
Timestamp:
10/27/2024 11:02:56 PM (6 weeks ago)
Author:
peterwilsoncc
Message:

Tests: Use better domain for HTTP API invalid hostname test.

The previous domain that was used to test for a host whose IPv4 address cannot be resolved, exampleeeee.com, got registered and has an A-record now, so it's not invalid anymore.

.invalid is intended for use in online construction of domain names that are sure to be invalid and which it is obvious at a glance are invalid.

Reference: Reserved Top Level DNS Names: TLDs for Testing, & Documentation Examples.

Follow-up to [52084], [58384], [58388].

Reviewed by peterwilsoncc.
Merges test changes from [59293] to the 6.0 branch.

Props sippis, johnbillion, MattyRob, swissspidy, SergeyBiryukov.
Fixes #62303.

Location:
branches/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0

  • branches/6.0/tests/phpunit/tests/http/http.php

    r54975 r59304  
    541541            ),
    542542            'a host whose IPv4 address cannot be resolved' => array(
    543                 'url' => 'http://exampleeeee.com/caniload.php',
     543                'url' => 'http://example.invalid/caniload.php',
    544544            ),
    545545            'an external request when not allowed'         => array(
Note: See TracChangeset for help on using the changeset viewer.