[wp-trac] [WordPress Trac] #56793: Test tool and unit test improvements for 6.2
WordPress Trac
noreply at wordpress.org
Thu Jan 5 10:21:35 UTC 2023
#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 SergeyBiryukov):
In [changeset:"55029" 55029]:
{{{
#!CommitTicketReference repository="" revision="55029"
Tests: Bring some consistency to mocking HTTP requests in unit tests.
Includes:
* Renaming the `$preempt` parameter to `$response` in the
`pre_http_request` filter to better match the context used in callbacks
(returning the original value if the conditions are not met rather than
preempting the request).
* Synchronizing parameter names and types in various `pre_http_request`
callbacks in unit tests.
Follow-up to [34509], [37907], [40628], [40629], [45667], [46175],
[48242], [48462], [49904], [51021], [51973], [52146], [52382], [54043],
[54968].
See #56793, #56792.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56793#comment:61>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list