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

WordPress Trac noreply at wordpress.org
Wed Feb 15 17:58:16 UTC 2017


#39264: Add WP-API JS Client unit tests to core
---------------------------------------------+-----------------------------
 Reporter:  adamsilverstein                  |       Owner:
     Type:  enhancement                      |  adamsilverstein
 Priority:  normal                           |      Status:  closed
Component:  REST API                         |   Milestone:  4.7.3
 Severity:  normal                           |     Version:  4.7
 Keywords:  has-patch has-unit-tests commit  |  Resolution:  fixed
                                             |     Focuses:  javascript
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40061"]:
 {{{
 #!CommitTicketReference repository="" revision="40061"
 REST API: improve test fixture generation, normalizing data.

 Add a data normalization pass when generating data fixtures for the REST
 API endpoints. Ensures that the `wp-api-generated.js` fixture won't change
 between test runs. Set more default properties and use fixed values for
 any properties that can't be easily controlled (object IDs and derivatives
 like link). Generate the fixture file with JSON_PRETTY_PRINT so that
 future diffs are easier to follow.

 Props jnylen0, netweb.
 Fixes #39264.
 }}}

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


More information about the wp-trac mailing list