[wp-trac] [WordPress Trac] #54420: Tests: Mock REST API remote requests

WordPress Trac noreply at wordpress.org
Thu Nov 11 16:52:41 UTC 2021


#54420: Tests: Mock REST API remote requests
--------------------------------------+-----------------------------
 Reporter:  hellofromTonya            |       Owner:  hellofromTonya
     Type:  task (blessed)            |      Status:  closed
 Priority:  normal                    |   Milestone:  6.0
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * owner:  (none) => hellofromTonya
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52137" 52137]:
 {{{
 #!CommitTicketReference repository="" revision="52137"
 Build/Test Tools: Mock remote request for
 `WP_REST_Block_Directory_Controller::get_items()`.

 Instead of hitting the live API, this commit mocks the remote request.

 Follow-up to [48242].

 Props hellofromTonya, noisysocks, sergeybiryukov, TimothyBlynJacobs.
 Fixes #54420.
 }}}

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


More information about the wp-trac mailing list