Changeset 52921 for trunk/tests/phpunit/tests/term/splitSharedTerm.php
- Timestamp:
- 03/11/2022 11:05:02 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/splitSharedTerm.php
r52389 r52921 55 55 array( '%d' ) 56 56 ); 57 clean_term_cache( $t1['term_id'], 'category' ); 57 58 58 59 $t2_child = wp_insert_term( … … 152 153 array( '%d' ) 153 154 ); 155 clean_term_cache( $t1['term_id'], 'category' ); 154 156 $th = _get_term_hierarchy( 'wptests_tax_4' ); 155 157 … … 180 182 array( '%d' ) 181 183 ); 184 clean_term_cache( $t1['term_id'], 'category' ); 182 185 183 186 $this->assertSame( $t1['term_id'], get_option( 'default_category', -1 ) ); … … 208 211 array( '%d' ) 209 212 ); 213 clean_term_cache( $t1['term_id'], 'category' ); 210 214 211 215 $menu_id = wp_create_nav_menu( 'Nav Menu Bar' ); … … 246 250 array( 'term_taxonomy_id' => $nav_term->term_taxonomy_id ) 247 251 ); 252 clean_term_cache( $shared_term_id, 'category' ); 248 253 249 254 set_theme_mod( 'nav_menu_locations', array( 'foo' => $shared_term_id ) ); … … 275 280 array( 'term_taxonomy_id' => $nav_term->term_taxonomy_id ) 276 281 ); 282 clean_term_cache( $shared_term_id, 'category' ); 277 283 278 284 $t1 = wp_insert_term( 'Random term', 'category' );
Note: See TracChangeset
for help on using the changeset viewer.