From 1efbe10b47466cdaa1e4129a287906fbc6291ddb Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 24 Sep 2015 11:31:30 +0000 Subject: [PATCH] Customizer: Update tests for [34487]. Fixes #33634. git-svn-id: https://develop.svn.wordpress.org/trunk@34488 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/customize/nav-menus.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 ); }