Opened 9 years ago
Closed 9 years ago
#32946 closed enhancement (fixed)
Add unit tests for get_objects_in_term()
Reported by: | rodrigosprimo | Owned by: | jorbin |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
The attached patch adds three basic unit tests for get_objects_in_term()
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Thanks!
Only thing I would change is to switch to using
$terms->get_error_code()
or$terms->get_error_message()
intest_get_objects_in_term_should_return_invalid_taxonomy_error()
, instead of using$terms->errors['invalid_taxonomy'][0]
directly.