#28119 closed enhancement (fixed)
Category API PHPUnit Tests
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
Attached is a patch of unit tests for the Category API. A subset of the api strictly calls the applicable term / taxonomy api and as such tests weren't written for those functions.
Covered Category API functions
- get_all_category_ids
- get_category_by_slug
- _make_cat_compat
- get_cat_name
- get_cat_ID
- get_category_by_path
Updated group of term_is_ancestor_of test method as it includes validation of cat_is_ancestor_of function.
PHPUnit --group category.php
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
category.php Unit Tests