diff --git a/tests/phpunit/tests/post/template.php b/tests/phpunit/tests/post/template.php index 41c2be7bbc..7fe86c047b 100644 --- a/tests/phpunit/tests/post/template.php +++ b/tests/phpunit/tests/post/template.php @@ -1,5 +1,8 @@ go_to( get_permalink( $post_id ) ); $this->assertFalse( get_page_template_slug() ); } + + /** + * @ticket 11095 + */ + public function test_wp_page_menu_wp_nav_menu_fallback() { + $pages = $this->factory->post->create_many( 3, array( 'post_type' => 'page' ) ); + + // No menus + wp_nav_menu() falls back to wp_page_menu(). + $menu = wp_nav_menu( array( 'echo' => false ) ); + + // After falling back, the 'before' argument should be set and output as '