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

WordPress Trac noreply at wordpress.org
Wed Feb 15 05:20:25 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:  has-patch has-unit-tests  |     Focuses:  javascript
--------------------------------------+------------------------------

Comment (by adamsilverstein):

 Replying to [comment:29 jnylen0]:
 > Here is how to use [attachment:compare-wp-api-fixtures.js] to generate
 the `self::$fixture_replacements` array in [attachment:39264.9.diff].

 Excellent, thanks for your continued work on this.

 I gave this a try and was able to get the same mapping array in the diff.
 The pretty print fixture is much better. I didn’t have a chance test to
 verify this fixes the issue with the fixture changing - I assume you
 tested that?

 It is a little hard for me to grok how the normalization works - some
 inline docs for `compare-wp-api-fixtures.js` would be helpful.

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


More information about the wp-trac mailing list