- Timestamp:
- 02/21/2017 07:01:07 AM (6 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/tests/phpunit/tests/customize/nav-menus.php
r39507 r40098 539 539 $this->assertEquals( 'unknown_post_type', $r->get_error_code() ); 540 540 541 $r = $menus->insert_auto_draft_post( array( 'post_type' => 'fake' ) ); 541 // Non-existent post types allowed as of #39610. 542 $r = $menus->insert_auto_draft_post( array( 'post_title' => 'Non-existent', 'post_type' => 'nonexistent' ) ); 543 $this->assertInstanceOf( 'WP_Post', $r ); 544 545 $r = $menus->insert_auto_draft_post( array( 'post_type' => 'post' ) ); 542 546 $this->assertInstanceOf( 'WP_Error', $r ); 543 $this->assertEquals( ' unknown_post_type', $r->get_error_code() );547 $this->assertEquals( 'empty_title', $r->get_error_code() ); 544 548 545 549 $r = $menus->insert_auto_draft_post( array( 'post_status' => 'publish', 'post_title' => 'Bad', 'post_type' => 'post' ) );
Note: See TracChangeset
for help on using the changeset viewer.