Changeset 43571 for trunk/tests/phpunit/tests/term/splitSharedTerm.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/splitSharedTerm.php
r42343 r43571 27 27 register_taxonomy( 'wptests_tax', 'post' ); 28 28 register_taxonomy( 29 'wptests_tax_2', 'post', array( 29 'wptests_tax_2', 30 'post', 31 array( 30 32 'hierarchical' => true, 31 33 ) … … 55 57 56 58 $t2_child = wp_insert_term( 57 'Foo Child', 'wptests_tax_2', array( 59 'Foo Child', 60 'wptests_tax_2', 61 array( 58 62 'parent' => $t1['term_id'], 59 63 ) … … 90 94 public function test_should_retain_child_terms_when_using_get_terms_parent() { 91 95 $children = get_terms( 92 'wptests_tax_2', array( 96 'wptests_tax_2', 97 array( 93 98 'parent' => $this->terms['t2']['term_id'], 94 99 'hide_empty' => false, … … 104 109 public function test_should_retain_child_terms_when_using_get_terms_child_of() { 105 110 $children = get_terms( 106 'wptests_tax_2', array( 111 'wptests_tax_2', 112 array( 107 113 'child_of' => $this->terms['t2']['term_id'], 108 114 'hide_empty' => false, … … 121 127 register_taxonomy( 'wptests_tax_3', 'post' ); 122 128 register_taxonomy( 123 'wptests_tax_4', 'post', array( 129 'wptests_tax_4', 130 'post', 131 array( 124 132 'hierarchical' => true, 125 133 ) … … 129 137 $t2 = wp_insert_term( 'Foo1 Parent', 'wptests_tax_4' ); 130 138 $t3 = wp_insert_term( 131 'Foo1', 'wptests_tax_4', array( 139 'Foo1', 140 'wptests_tax_4', 141 array( 132 142 'parent' => $t2['term_id'], 133 143 ) … … 201 211 $menu_id = wp_create_nav_menu( rand_str() ); 202 212 $cat_menu_item = wp_update_nav_menu_item( 203 $menu_id, 0, array( 213 $menu_id, 214 0, 215 array( 204 216 'menu-item-type' => 'taxonomy', 205 217 'menu-item-object' => 'category', … … 266 278 $t1 = wp_insert_term( 'Random term', 'category' ); 267 279 $cat_menu_item = wp_update_nav_menu_item( 268 $shared_term_id, 0, array( 280 $shared_term_id, 281 0, 282 array( 269 283 'menu-item-type' => 'taxonomy', 270 284 'menu-item-object' => 'category', … … 276 290 // Updating the menu will split the shared term. 277 291 $new_nav_menu_id = wp_update_nav_menu_object( 278 $shared_term_id, array( 292 $shared_term_id, 293 array( 279 294 'description' => 'Updated Foo Menu', 280 295 'menu-name' => 'Updated Foo Menu',
Note: See TracChangeset
for help on using the changeset viewer.