wp_loaded() public method

Register styles/scripts and initialize the preview of each setting
Since: 3.4.0
public wp_loaded ( )
 /**
  * Test WP_Customize_Manager::wp_loaded().
  *
  * Ensure that post values are previewed even without being in preview.
  *
  * @ticket 30937
  * @covers WP_Customize_Manager::wp_loaded()
  */
 function test_wp_loaded()
 {
     wp_set_current_user(self::$admin_user_id);
     $wp_customize = new WP_Customize_Manager();
     $title = 'Hello World';
     $wp_customize->set_post_value('blogname', $title);
     $this->assertNotEquals($title, get_option('blogname'));
     $wp_customize->wp_loaded();
     $this->assertFalse($wp_customize->is_preview());
     $this->assertEquals($title, $wp_customize->get_setting('blogname')->value());
     $this->assertEquals($title, get_option('blogname'));
 }