[wp-trac] [WordPress Trac] #54420: Tests: Mock REST API remote requests
WordPress Trac
noreply at wordpress.org
Thu Nov 11 16:58:41 UTC 2021
#54420: Tests: Mock REST API remote requests
--------------------------------------+-----------------------------
Reporter: hellofromTonya | Owner: hellofromTonya
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 6.0
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------------
Comment (by hellofromTonya):
In [changeset:"52138" 52138]:
{{{
#!CommitTicketReference repository="" revision="52138"
Build/Test Tools: Mock remote request for unknown plugin in
`WP_REST_Plugins_Controller::create_item()`.
Instead of hitting the live API, this commit mocks the remote request when
testing creating an item that's an unknown plugin.
Follow-up to [48242].
Props hellofromTonya, noisysocks, sergeybiryukov, TimothyBlynJacobs.
See #54420.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54420#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list