[wp-trac] [WordPress Trac] #32946: Add unit tests for get_objects_in_term()

WordPress Trac noreply at wordpress.org
Thu Jul 9 23:47:08 UTC 2015


#32946: Add unit tests for get_objects_in_term()
---------------------------+------------------
 Reporter:  rodrigosprimo  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  4.3
Component:  Taxonomy       |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------
Changes (by johnbillion):

 * component:  Build/Test Tools => Taxonomy
 * milestone:  Awaiting Review => 4.3


Comment:

 Thanks!

 Only thing I would change is to switch to using `$terms->get_error_code()`
 or `$terms->get_error_message()` in
 `test_get_objects_in_term_should_return_invalid_taxonomy_error()`, instead
 of using `$terms->errors['invalid_taxonomy'][0]` directly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32946#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list