Changeset 33424
- Timestamp:
- 07/26/2015 09:14:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menus.php
r33366 r33424 498 498 foreach ( $post_types as $type ) { 499 499 $this->assertContains( 'available-menu-items-post_type-' . esc_attr( $type->name ), $template ); 500 $this->assert Contains( '<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 ); 501 501 $this->assertContains( 'data-type="post_type"', $template ); 502 502 $this->assertContains( 'data-object="' . esc_attr( $type->name ) . '"', $template ); … … 508 508 foreach ( $taxonomies as $tax ) { 509 509 $this->assertContains( 'available-menu-items-taxonomy-' . esc_attr( $tax->name ), $template ); 510 $this->assert Contains( '<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 ); 511 511 $this->assertContains( 'data-type="taxonomy"', $template ); 512 512 $this->assertContains( 'data-object="' . esc_attr( $tax->name ) . '"', $template ); … … 515 515 516 516 $this->assertContains( 'available-menu-items-custom_type', $template ); 517 $this->assert Contains( '<h4 class="accordion-section-title">Custom', $template );517 $this->assertRegExp( '#<h4 class="accordion-section-title".*>\s*Custom#', $template ); 518 518 $this->assertContains( 'data-type="custom_type"', $template ); 519 519 $this->assertContains( 'data-object="custom_object"', $template );
Note: See TracChangeset
for help on using the changeset viewer.