[wp-trac] [WordPress Trac] #39122: REST API: Add Term Meta Unit Test Coverage

WordPress Trac noreply at wordpress.org
Tue Dec 6 21:25:44 UTC 2016


#39122: REST API: Add Term Meta Unit Test Coverage
----------------------------+-----------------------------
 Reporter:  timmydcrawford  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  REST API        |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39122>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list