Changeset 52389 for trunk/tests/phpunit/tests/post/nav-menu.php
- Timestamp:
- 12/19/2021 01:42:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/nav-menu.php
r52248 r52389 13 13 parent::set_up(); 14 14 15 $this->menu_id = wp_create_nav_menu( rand_str());15 $this->menu_id = wp_create_nav_menu( 'foo' ); 16 16 } 17 17 … … 256 256 public function test_wp_setup_nav_menu_item_for_post_type_archive() { 257 257 258 $post_type_slug = rand_str( 12 );259 $post_type_description = rand_str();258 $post_type_slug = 'fooo-bar-baz'; 259 $post_type_description = 'foo'; 260 260 register_post_type( 261 261 $post_type_slug, … … 289 289 public function test_wp_setup_nav_menu_item_for_post_type_archive_no_description() { 290 290 291 $post_type_slug = rand_str( 12 );291 $post_type_slug = 'fooo-bar-baz'; 292 292 $post_type_description = ''; 293 293 register_post_type( … … 320 320 public function test_wp_setup_nav_menu_item_for_post_type_archive_custom_description() { 321 321 322 $post_type_slug = rand_str( 12 );323 $post_type_description = rand_str();322 $post_type_slug = 'fooo-bar-baz'; 323 $post_type_description = 'foobaz'; 324 324 register_post_type( 325 325 $post_type_slug, … … 332 332 ); 333 333 334 $menu_item_description = rand_str();334 $menu_item_description = 'foo_description'; 335 335 336 336 $post_type_archive_item_id = wp_update_nav_menu_item( … … 355 355 public function test_wp_setup_nav_menu_item_for_unknown_post_type_archive_no_description() { 356 356 357 $post_type_slug = rand_str( 12 );357 $post_type_slug = 'fooo-bar-baz'; 358 358 359 359 $post_type_archive_item_id = wp_update_nav_menu_item(
Note: See TracChangeset
for help on using the changeset viewer.