Wordpress/tests/qunit/fixtures
Adam Silverstein e3d5e1c6c8 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@40061 602fd350-edb4-49c9-b593-d223f7449a82
2017-02-15 17:58:14 +00:00
..
customize-header.js Add PHP and JS unit tests for custom headers. 2014-03-29 10:05:22 +00:00
customize-menus.js Administration: Improve the usage of the button CSS classes. 2016-09-28 19:53:07 +00:00
customize-settings.js Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00
customize-widgets.js Administration: Improve the usage of the button CSS classes. 2016-09-28 19:53:07 +00:00
updates.js Update/Install: Give context to "Deleted! string to allow for differentiation between theme and plugin translations. 2017-01-31 09:58:49 +00:00
wp-api-generated.js REST API: improve test fixture generation, normalizing data. 2017-02-15 17:58:14 +00:00
wp-api.js REST API: Add QUnit tests for wp-api.js and PHPUnit fixture generation. 2017-02-14 04:22:32 +00:00