[wp-trac] [WordPress Trac] #38813: REST API: Test schema registration for required fields.

WordPress Trac noreply at wordpress.org
Wed Nov 16 06:21:37 UTC 2016


#38813: REST API: Test schema registration for required fields.
-------------------------+------------------------------
 Reporter:  rmccue       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Future Release
Component:  REST API     |    Version:
 Severity:  normal       |   Keywords:  needs-unit-tests
  Focuses:               |
-------------------------+------------------------------
 Follow-up from #38792.

 For all endpoints included in WordPress core, we want to make sure
 arguments and parameters are consistently registered and expose a nice,
 stable API to the world. While we can check this manually, building it
 into the unit tests is even better.

 @jnylen0 wrote an initial version
 [https://gist.github.com/nylen/9021f6d19157a023a0a8a607a3adb28a in Node-
 based JS], so we can port this to PHP and use the built-in schema rather
 than sending a HTTP request.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38813>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list