Changeset 35736 for trunk/tests/phpunit/tests/post/nav-menu.php
- Timestamp:
- 11/25/2015 06:18:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/nav-menu.php
r35242 r35736 14 14 15 15 $this->menu_id = wp_create_nav_menu( rand_str() ); 16 } 17 18 /** 19 * @ticket 32464 20 */ 21 public function test_wp_nav_menu_empty_container() { 22 $tag_id = self::factory()->tag->create(); 23 24 wp_update_nav_menu_item( $this->menu_id, 0, array( 25 'menu-item-type' => 'taxonomy', 26 'menu-item-object' => 'post_tag', 27 'menu-item-object-id' => $tag_id, 28 'menu-item-status' => 'publish' 29 ) ); 30 31 $menu = wp_nav_menu( array( 32 'echo' => false, 33 'container' => '', 34 'menu' => $this->menu_id 35 ) ); 36 37 $this->assertEquals( 0, strpos( $menu, '<ul' ) ); 16 38 } 17 39
Note: See TracChangeset
for help on using the changeset viewer.