Make WordPress Core

Changeset 34488


Ignore:
Timestamp:
09/24/2015 11:31:30 AM (9 years ago)
Author:
ocean90
Message:

Customizer: Update tests for [34487].

Fixes #33634.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/nav-menus.php

    r33424 r34488  
    427427
    428428        $expected = array(
    429             array( 'title' => 'Post', 'type' => 'post_type', 'object' => 'post' ),
    430             array( 'title' => 'Page', 'type' => 'post_type', 'object' => 'page' ),
    431             array( 'title' => 'Category', 'type' => 'taxonomy', 'object' => 'category' ),
    432             array( 'title' => 'Tag', 'type' => 'taxonomy', 'object' => 'post_tag' ),
     429            array( 'title' => 'Posts', 'type' => 'post_type', 'object' => 'post' ),
     430            array( 'title' => 'Pages', 'type' => 'post_type', 'object' => 'page' ),
     431            array( 'title' => 'Categories', 'type' => 'taxonomy', 'object' => 'category' ),
     432            array( 'title' => 'Tags', 'type' => 'taxonomy', 'object' => 'post_tag' ),
    433433        );
    434434
     
    498498            foreach ( $post_types as $type ) {
    499499                $this->assertContains( 'available-menu-items-post_type-' . esc_attr( $type->name ), $template );
    500                 $this->assertRegExp( '#<h4 class="accordion-section-title".*>\s*' . esc_html( $type->labels->singular_name ) . '#', $template );
     500                $this->assertRegExp( '#<h4 class="accordion-section-title".*>\s*' . esc_html( $type->labels->name ) . '#', $template );
    501501                $this->assertContains( 'data-type="post_type"', $template );
    502502                $this->assertContains( 'data-object="' . esc_attr( $type->name ) . '"', $template );
     
    508508            foreach ( $taxonomies as $tax ) {
    509509                $this->assertContains( 'available-menu-items-taxonomy-' . esc_attr( $tax->name ), $template );
    510                 $this->assertRegExp( '#<h4 class="accordion-section-title".*>\s*' . esc_html( $tax->labels->singular_name ) . '#', $template );
     510                $this->assertRegExp( '#<h4 class="accordion-section-title".*>\s*' . esc_html( $tax->labels->name ) . '#', $template );
    511511                $this->assertContains( 'data-type="taxonomy"', $template );
    512512                $this->assertContains( 'data-object="' . esc_attr( $tax->name ) . '"', $template );
Note: See TracChangeset for help on using the changeset viewer.