[wp-trac] [WordPress Trac] #40734: REST API: Tests: Prohibit errors when generating wp-api.js fixtures
WordPress Trac
noreply at wordpress.org
Thu May 11 18:31:28 UTC 2017
#40734: REST API: Tests: Prohibit errors when generating wp-api.js fixtures
------------------------------+-----------------------
Reporter: jnylen0 | Owner: jnylen0
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.8
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: rest-api
------------------------------+-----------------------
Changes (by jnylen0):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"40629"]:
{{{
#!CommitTicketReference repository="" revision="40629"
REST API: Tests: Remove and prohibit errors when generating `wp-api.js`
fixtures.
During a PHPUnit test suite run, a file named `wp-api-generated.js` is
created which contains some response objects that serve as fixtures for
the `wp-api.js` client unit tests.
Previously, some of these API responses were actually error objects, which
isn't what we want for testing. This commit fixes the existing error
responses and prevents this situation in the future.
Fixes #40734.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40734#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list