diff --git a/tests/phpunit/tests/customize/nav-menus.php b/tests/phpunit/tests/customize/nav-menus.php index d85e75c8b8..0e0d304a85 100644 --- a/tests/phpunit/tests/customize/nav-menus.php +++ b/tests/phpunit/tests/customize/nav-menus.php @@ -426,10 +426,10 @@ class Test_WP_Customize_Nav_Menus extends WP_UnitTestCase { $menus = new WP_Customize_Nav_Menus( $this->wp_customize ); $expected = array( - array( 'title' => 'Post', 'type' => 'post_type', 'object' => 'post' ), - array( 'title' => 'Page', 'type' => 'post_type', 'object' => 'page' ), - array( 'title' => 'Category', 'type' => 'taxonomy', 'object' => 'category' ), - array( 'title' => 'Tag', 'type' => 'taxonomy', 'object' => 'post_tag' ), + array( 'title' => 'Posts', 'type' => 'post_type', 'object' => 'post' ), + array( 'title' => 'Pages', 'type' => 'post_type', 'object' => 'page' ), + array( 'title' => 'Categories', 'type' => 'taxonomy', 'object' => 'category' ), + array( 'title' => 'Tags', 'type' => 'taxonomy', 'object' => 'post_tag' ), ); if ( current_theme_supports( 'post-formats' ) ) { @@ -497,7 +497,7 @@ class Test_WP_Customize_Nav_Menus extends WP_UnitTestCase { if ( $post_types ) { foreach ( $post_types as $type ) { $this->assertContains( 'available-menu-items-post_type-' . esc_attr( $type->name ), $template ); - $this->assertRegExp( '#

\s*' . esc_html( $type->labels->singular_name ) . '#', $template ); + $this->assertRegExp( '#

\s*' . esc_html( $type->labels->name ) . '#', $template ); $this->assertContains( 'data-type="post_type"', $template ); $this->assertContains( 'data-object="' . esc_attr( $type->name ) . '"', $template ); } @@ -507,7 +507,7 @@ class Test_WP_Customize_Nav_Menus extends WP_UnitTestCase { if ( $taxonomies ) { foreach ( $taxonomies as $tax ) { $this->assertContains( 'available-menu-items-taxonomy-' . esc_attr( $tax->name ), $template ); - $this->assertRegExp( '#

\s*' . esc_html( $tax->labels->singular_name ) . '#', $template ); + $this->assertRegExp( '#

\s*' . esc_html( $tax->labels->name ) . '#', $template ); $this->assertContains( 'data-type="taxonomy"', $template ); $this->assertContains( 'data-object="' . esc_attr( $tax->name ) . '"', $template ); }