[wp-trac] [WordPress Trac] #39264: Add WP-API JS Client unit tests to core
WordPress Trac
noreply at wordpress.org
Thu Feb 16 23:29:18 UTC 2017
#39264: Add WP-API JS Client unit tests to core
-----------------------------+------------------------------
Reporter: adamsilverstein | Owner: adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.7.3
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: needs-patch | Focuses: javascript
-----------------------------+------------------------------
Changes (by jnylen0):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"40065"]:
{{{
#!CommitTicketReference repository="" revision="40065"
REST API: Fix the client test fixture generation in PHP 5.2 and 5.3.
Remove `JSON_UNESCAPED_SLASHES` from the `wp_json_encode` call - this
constant is not supported in PHP < 5.4, and we don't polyfill it either.
Also make the PHPUnit test suite correctly exit with a non-zero exit code
when `wp-tests-config.php` is not present. This was causing `grunt
restapi-jsclient` to incorrectly proceed to its second step even when the
first step failed with this error.
Props ocean90.
Fixes #39264.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39264#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list