[wp-trac] [WordPress Trac] #39264: Add WP-API JS Client unit tests to core

WordPress Trac noreply at wordpress.org
Sun Feb 19 05:22:24 UTC 2017


#39264: Add WP-API JS Client unit tests to core
-----------------------------+------------------------------
 Reporter:  adamsilverstein  |       Owner:  adamsilverstein
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:  4.7.3
Component:  REST API         |     Version:  4.7
 Severity:  normal           |  Resolution:
 Keywords:  fixed-major      |     Focuses:  javascript
-----------------------------+------------------------------

Comment (by rachelbaker):

 The test in
 `WP_Test_REST_Schema_Initialization->test_expected_routes_in_schema()` is
 so strict that it will fail when being run alongside any WP theme or
 plugin that registers custom endpoints.  I forsee many Travis build
 failures in our community if that test method is left as is.

 @adamsilverstein I get that you want to make sure there are no new routes
 added to core without handling in the JS client - what about just checking
 the routes with the /wp/v2/ namespace?

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


More information about the wp-trac mailing list