From 43e9f1fe2bb979702dd14c6ff5b544a44e763357 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sun, 27 Oct 2024 22:56:44 +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]. Props sippis, johnbillion, MattyRob, swissspidy. Fixes #62303. Reviewed by Merges [59293] to the 6.4 branch. git-svn-id: https://develop.svn.wordpress.org/branches/6.4@59300 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 1648cca4eaf9f..dc8258d2e9d0a 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',