Changeset 54091
- Timestamp:
- 09/07/2022 02:05:41 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term.php
r52938 r54091 139 139 $t2 = wp_insert_term( $term, 'category', array( 'parent' => $t['term_id'] ) ); 140 140 $this->assertIsArray( $t2 ); 141 if ( function_exists( 'term_is_ancestor_of' ) ) { 142 143 144 } 141 142 $this->assertTrue( term_is_ancestor_of( $t['term_id'], $t2['term_id'], 'category' ) ); 143 $this->assertFalse( term_is_ancestor_of( $t2['term_id'], $t['term_id'], 'category' ) ); 144 145 145 $this->assertTrue( cat_is_ancestor_of( $t['term_id'], $t2['term_id'] ) ); 146 146 $this->assertFalse( cat_is_ancestor_of( $t2['term_id'], $t['term_id'] ) );
Note: See TracChangeset
for help on using the changeset viewer.