Changeset 34488
- Timestamp:
- 09/24/2015 11:31:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menus.php
r33424 r34488 427 427 428 428 $expected = array( 429 array( 'title' => 'Post ', 'type' => 'post_type', 'object' => 'post' ),430 array( 'title' => 'Page ', 'type' => 'post_type', 'object' => 'page' ),431 array( 'title' => 'Categor y', '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' ), 433 433 ); 434 434 … … 498 498 foreach ( $post_types as $type ) { 499 499 $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 ); 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->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 ); 511 511 $this->assertContains( 'data-type="taxonomy"', $template ); 512 512 $this->assertContains( 'data-object="' . esc_attr( $tax->name ) . '"', $template );
Note: See TracChangeset
for help on using the changeset viewer.