From f008049c49195dbfa954631fecc7fbfff0cc8ca2 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sun, 27 Oct 2024 22:55:24 +0000 Subject: [PATCH] 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: [https://datatracker.ietf.org/doc/html/rfc2606#section-2 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.5 branch. Props sippis, johnbillion, MattyRob, swissspidy, SergeyBiryukov. Fixes #62303. git-svn-id: https://develop.svn.wordpress.org/branches/6.5@59299 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/http/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/http/http.php b/tests/phpunit/tests/http/http.php index 77a5239819c64..fb78f77ac80b3 100644 --- a/tests/phpunit/tests/http/http.php +++ b/tests/phpunit/tests/http/http.php @@ -549,7 +549,7 @@ public function data_wp_http_validate_url_should_not_validate() { 'url' => 'http://[exam]ple.com/caniload.php', ), 'a host whose IPv4 address cannot be resolved' => array( - 'url' => 'http://exampleeeee.com/caniload.php', + 'url' => 'http://example.invalid/caniload.php', ), 'an external request when not allowed' => array( 'url' => 'http://192.168.0.1/caniload.php',