Make WordPress Core

Changeset 33424


Ignore:
Timestamp:
07/26/2015 09:14:06 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Update Test_WP_Customize_Nav_Menus::test_available_items_template() after [33413].

fixes #32715.

File:
1 edited

Legend:

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

    r33366 r33424  
    498498            foreach ( $post_types as $type ) {
    499499                $this->assertContains( 'available-menu-items-post_type-' . esc_attr( $type->name ), $template );
    500                 $this->assertContains( '<h4 class="accordion-section-title">' . esc_html( $type->labels->singular_name ), $template );
     500                $this->assertRegExp( '#<h4 class="accordion-section-title".*>\s*' . esc_html( $type->labels->singular_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->assertContains( '<h4 class="accordion-section-title">' . esc_html( $tax->labels->singular_name ), $template );
     510                $this->assertRegExp( '#<h4 class="accordion-section-title".*>\s*' . esc_html( $tax->labels->singular_name ) . '#', $template );
    511511                $this->assertContains( 'data-type="taxonomy"', $template );
    512512                $this->assertContains( 'data-object="' . esc_attr( $tax->name ) . '"', $template );
     
    515515
    516516        $this->assertContains( 'available-menu-items-custom_type', $template );
    517         $this->assertContains( '<h4 class="accordion-section-title">Custom', $template );
     517        $this->assertRegExp( '#<h4 class="accordion-section-title".*>\s*Custom#', $template );
    518518        $this->assertContains( 'data-type="custom_type"', $template );
    519519        $this->assertContains( 'data-object="custom_object"', $template );
Note: See TracChangeset for help on using the changeset viewer.