Add unit tests for functions in wp-includes/category.php.

Props mdbitz. 
Fixes #28119.


git-svn-id: https://develop.svn.wordpress.org/trunk@28566 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-05-23 21:07:18 +00:00
parent cfb7408e2a
commit b2db40a694
2 changed files with 250 additions and 0 deletions

View File

@@ -325,6 +325,9 @@ class Tests_Term extends WP_UnitTestCase {
$this->assertTrue( (bool) wp_delete_post( $post_id, true ) );
}
/**
* @group category.php
*/
function test_term_is_ancestor_of( ) {
$term = rand_str();
$term2 = rand_str();