make_auto_draft_status_previewable() public method

Make the auto-draft status protected so that it can be queried.
Since: 4.7.0
Example #1
0
 /**
  * Test make_auto_draft_status_previewable.
  *
  * @covers WP_Customize_Nav_Menus::make_auto_draft_status_previewable()
  */
 function test_make_auto_draft_status_previewable()
 {
     global $wp_post_statuses;
     $menus = new WP_Customize_Nav_Menus($this->wp_customize);
     $menus->make_auto_draft_status_previewable();
     $this->assertTrue($wp_post_statuses['auto-draft']->protected);
 }