Make WordPress Core

Opened 6 weeks ago

Closed 6 weeks ago

#62307 closed defect (bug) (duplicate)

HTTP unit test failing, URL is now resolving

Reported by: mattyrob's profile MattyRob Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: needs-patch
Focuses: Cc:

Description

In the PHPUnit tests, there is a collection of tests the check to ensure certain URLs don't validate, the tests is test_wp_http_validate_url_should_not_validate in tests/phpunit/tests/http/http.php. One is based on a URL presumed to not exist, however the URL is now registered and resolving to a website.

The address used currently is http://exampleeeee.com/caniload.php at line 552:
https://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/http/http.php#L552

Changing that URL, for example by adding another e in the domain will restore the test, although there may be a better solution.

Change History (1)

#1 @swissspidy
6 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #62303.

Note: See TracTickets for help on using tickets.