[wp-trac] [WordPress Trac] #56793: Test tool and unit test improvements for 6.2

WordPress Trac noreply at wordpress.org
Thu Dec 15 04:27:19 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 has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by peterwilsoncc):

 In [changeset:"54979" 54979]:
 {{{
 #!CommitTicketReference repository="" revision="54979"
 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.
 Merges [54968] to the 5.6 branch.
 Fixes #57306.
 See #56793.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56793#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list