Changeset 40098 for branches/4.7/tests/phpunit/tests/customize/manager.php
- Timestamp:
- 02/21/2017 07:01:07 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/tests/phpunit/tests/customize/manager.php
r39575 r40098 373 373 'post_title' => 'Custom', 374 374 'thumbnail' => '{{waffles}}', 375 ), 376 'unknown_cpt' => array( 377 'post_type' => 'unknown_cpt', 378 'post_title' => 'Unknown CPT', 375 379 ), 376 380 ), … … 442 446 443 447 $posts_by_name = array(); 444 $this->assertCount( 6, $changeset_values['nav_menus_created_posts'] );448 $this->assertCount( 7, $changeset_values['nav_menus_created_posts'] ); 445 449 $this->assertContains( $existing_published_home_page_id, $changeset_values['nav_menus_created_posts'], 'Expected reuse of non-auto-draft posts.' ); 446 450 $this->assertContains( $existing_canola_attachment_id, $changeset_values['nav_menus_created_posts'], 'Expected reuse of non-auto-draft attachment.' ); … … 462 466 $posts_by_name[ $post_name ] = $post->ID; 463 467 } 464 $this->assertEquals( array( 'waffles', 'canola', 'home', 'about', 'blog', 'custom' ), array_keys( $posts_by_name ) );468 $this->assertEquals( array( 'waffles', 'canola', 'home', 'about', 'blog', 'custom', 'unknown-cpt' ), array_keys( $posts_by_name ) ); 465 469 $this->assertEquals( 'Custom', get_post( $posts_by_name['custom'] )->post_title ); 466 470 $this->assertEquals( 'sample-page-template.php', get_page_template_slug( $posts_by_name['about'] ) );
Note: See TracChangeset
for help on using the changeset viewer.