Make WordPress Core

Opened 19 months ago

Last modified 17 months ago

#39122 new enhancement

REST API: Add Term Meta Unit Test Coverage

Reported by: timmydcrawford Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7
Component: REST API Keywords:
Focuses: Cc:


This is a follow up to #38989 where I had submitted a diff with some basic custom term + meta unit tests that didn't really apply to the issue at hand. @rachelbaker suggested ( https://core.trac.wordpress.org/ticket/38989#comment:4 ) that I add the tests in a new issue.

The tests assert that register_meta on terms are properly included in term responses, and casted correctly for single=>true and single=>false. Additionally the tests act as documentation of sorts on how to interact with custom meta with terms in the REST API.

Attachments (1)

add-term-meta-unit-tests.diff (2.2 KB) - added by timmydcrawford 19 months ago.

Download all attachments as: .zip

Change History (2)

This ticket was mentioned in Slack in #core-restapi by kadamwhite. View the logs.

17 months ago

Note: See TracTickets for help on using tickets.