[wp-trac] [WordPress Trac] #56793: Test tool and unit test improvements for 6.2
WordPress Trac
noreply at wordpress.org
Wed Dec 14 01:26:54 UTC 2022
#56793: Test tool and unit test improvements for 6.2
------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.2
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+---------------------
Comment (by peterwilsoncc):
In [changeset:"54968" 54968]:
{{{
#!CommitTicketReference repository="" revision="54968"
Built/Test tools, HTTP API: Refactor test for multiple location headers.
Remove wordpress.org as an external dependency testing
`WP_HTTP::handle_redirects()`.
This refactors and reenables an existing test to call the
`WP_HTTP::handle_redirects()` method directly with a mocked array of HTTP
headers containing multiple location headers.
The test is moved from the external-http group to the http test group as
it no longer makes an HTTP request.
Follow up to [54955].
Props SergeyBiryukov, dd32, peterwilsoncc.
Fixes #57306.
See #56793.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56793#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list