/** * @see Widget_Posts::register_widget_instance_settings_early() * @see Widget_Posts::register_widget_settings() */ function test_register_widget_instance_settings_early() { $wp = new \WP(); $wp->main(); foreach ($this->customize_manager->settings() as $setting_id => $setting) { if (preg_match('/^widget_/', $setting_id)) { $this->assertInstanceOf(__NAMESPACE__ . '\\WP_Customize_Widget_Setting', $setting); } } }