Make WordPress Core


Ignore:
Timestamp:
11/04/2021 03:22:47 PM (4 years ago)
Author:
hellofromTonya
Message:

Coding Standards: Add visibility to methods in tests/phpunit/tests/.

Adds a public visibility to test fixtures, tests, data providers, and callbacks methods.

Adds a private visibility to helper methods within test classes.

Renames callbacks and helpers that previously started with a _ prefix. Why? For consistency and to leverage using the method visibility. Further naming standardizations is beyond the scope of this commit.

Props costdev, jrf, hellofromTonya.
Fixes #54177.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/manager.php

    r51568 r52010  
    5454     * Set up test.
    5555     */
    56     function set_up() {
     56    public function set_up() {
    5757        parent::set_up();
    5858        require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
     
    7171     * Tear down test.
    7272     */
    73     function tear_down() {
     73    public function tear_down() {
    7474        $this->manager = null;
    7575        unset( $GLOBALS['wp_customize'] );
     
    8484     * @return string Theme slug (stylesheet).
    8585     */
    86     function get_inactive_core_theme() {
     86    private function get_inactive_core_theme() {
    8787        $stylesheet = get_stylesheet();
    8888        foreach ( wp_get_themes() as $theme ) {
     
    9999     * @return WP_Customize_Manager
    100100     */
    101     function instantiate() {
     101    private function instantiate() {
    102102        $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    103103        return $GLOBALS['wp_customize'];
     
    109109     * @covers WP_Customize_Manager::__construct
    110110     */
    111     function test_constructor() {
     111    public function test_constructor() {
    112112        $uuid              = wp_generate_uuid4();
    113113        $theme             = 'twentyfifteen';
     
    228228     * @covers WP_Customize_Manager::setup_theme
    229229     */
    230     function test_setup_theme_in_customize_admin() {
     230    public function test_setup_theme_in_customize_admin() {
    231231        global $pagenow, $wp_customize;
    232232        $pagenow = 'customize.php';
     
    274274     * @ticket 41039
    275275     */
    276     function test_fresh_site_flag_clearing() {
     276    public function test_fresh_site_flag_clearing() {
    277277        global $wp_customize, $wpdb;
    278278
     
    297297     * @covers WP_Customize_Manager::setup_theme
    298298     */
    299     function test_setup_theme_in_frontend() {
     299    public function test_setup_theme_in_frontend() {
    300300        global $wp_customize, $pagenow, $show_admin_bar;
    301301        $pagenow = 'front';
     
    332332     * @covers WP_Customize_Manager::settings_previewed
    333333     */
    334     function test_settings_previewed() {
     334    public function test_settings_previewed() {
    335335        $wp_customize = new WP_Customize_Manager( array( 'settings_previewed' => false ) );
    336336        $this->assertFalse( $wp_customize->settings_previewed() );
     
    385385     * @covers WP_Customize_Manager::changeset_uuid
    386386     */
    387     function test_changeset_uuid() {
     387    public function test_changeset_uuid() {
    388388        $uuid         = wp_generate_uuid4();
    389389        $wp_customize = new WP_Customize_Manager( array( 'changeset_uuid' => $uuid ) );
     
    399399     * @covers WP_Customize_Manager::wp_loaded
    400400     */
    401     function test_wp_loaded() {
     401    public function test_wp_loaded() {
    402402        wp_set_current_user( self::$admin_user_id );
    403403        $wp_customize = new WP_Customize_Manager();
     
    417417     * @covers WP_Customize_Manager::find_changeset_post_id
    418418     */
    419     function test_find_changeset_post_id() {
     419    public function test_find_changeset_post_id() {
    420420        $uuid    = wp_generate_uuid4();
    421421        $post_id = $this->factory()->post->create(
     
    442442     * @covers WP_Customize_Manager::changeset_post_id
    443443     */
    444     function test_changeset_post_id() {
     444    public function test_changeset_post_id() {
    445445        $uuid         = wp_generate_uuid4();
    446446        $wp_customize = new WP_Customize_Manager( array( 'changeset_uuid' => $uuid ) );
     
    466466     * @covers WP_Customize_Manager::changeset_data
    467467     */
    468     function test_changeset_data() {
     468    public function test_changeset_data() {
    469469        wp_set_current_user( self::$admin_user_id );
    470470        $uuid         = wp_generate_uuid4();
     
    544544     * @requires function imagejpeg
    545545     */
    546     function test_import_theme_starter_content() {
     546    public function test_import_theme_starter_content() {
    547547        wp_set_current_user( self::$admin_user_id );
    548548        register_nav_menu( 'top', 'Top' );
     
    812812     * @covers WP_Customize_Manager::import_theme_starter_content
    813813     */
    814     function test_import_theme_starter_content_with_nested_arrays() {
     814    public function test_import_theme_starter_content_with_nested_arrays() {
    815815        wp_set_current_user( self::$admin_user_id );
    816816
     
    886886     * @covers WP_Customize_Manager::customize_preview_init
    887887     */
    888     function test_customize_preview_init() {
     888    public function test_customize_preview_init() {
    889889
    890890        // Test authorized admin user.
     
    931931     * @covers WP_Customize_Manager::filter_iframe_security_headers
    932932     */
    933     function test_filter_iframe_security_headers() {
     933    public function test_filter_iframe_security_headers() {
    934934        $wp_customize = new WP_Customize_Manager();
    935935        $headers      = $wp_customize->filter_iframe_security_headers( array() );
     
    946946     * @covers WP_Customize_Manager::add_state_query_params
    947947     */
    948     function test_add_state_query_params() {
     948    public function test_add_state_query_params() {
    949949        $preview_theme = $this->get_inactive_core_theme();
    950950
     
    10051005     * @covers WP_Customize_Manager::save_changeset_post
    10061006     */
    1007     function test_save_changeset_post_without_theme_activation() {
     1007    public function test_save_changeset_post_without_theme_activation() {
    10081008        global $wp_customize;
    10091009        wp_set_current_user( self::$admin_user_id );
     
    14221422     * @return array Data.
    14231423     */
    1424     function filter_customize_changeset_save_data( $data, $context ) {
     1424    public function filter_customize_changeset_save_data( $data, $context ) {
    14251425        $this->customize_changeset_save_data_call_count += 1;
    14261426        $this->assertIsArray( $data );
     
    14411441     * @return WP_Error Error.
    14421442     */
    1443     function return_illegal_error() {
     1443    public function return_illegal_error() {
    14441444        return new WP_Error( 'illegal' );
    14451445    }
     
    14521452     * @covers WP_Customize_Manager::update_stashed_theme_mod_settings
    14531453     */
    1454     function test_save_changeset_post_with_theme_activation() {
     1454    public function test_save_changeset_post_with_theme_activation() {
    14551455        global $wp_customize;
    14561456        wp_set_current_user( self::$admin_user_id );
     
    14901490     * @covers WP_Customize_Manager::save_changeset_post
    14911491     */
    1492     function test_save_changeset_post_with_varying_users() {
     1492    public function test_save_changeset_post_with_varying_users() {
    14931493        global $wp_customize;
    14941494
     
    16651665     * @covers WP_Customize_Manager::save_changeset_post
    16661666     */
    1667     function test_save_changeset_post_dumping_auto_draft_date() {
     1667    public function test_save_changeset_post_dumping_auto_draft_date() {
    16681668        global $wp_customize;
    16691669        wp_set_current_user( self::$admin_user_id );
     
    17051705     * @covers WP_Customize_Manager::save_changeset_post
    17061706     */
    1707     function test_save_changeset_post_with_unchanged_values() {
     1707    public function test_save_changeset_post_with_unchanged_values() {
    17081708        global $wp_customize;
    17091709
     
    19051905     * @covers WP_Customize_Manager::save_changeset_post
    19061906     */
    1907     function test_remove_setting_from_changeset_post() {
     1907    public function test_remove_setting_from_changeset_post() {
    19081908        $uuid = wp_generate_uuid4();
    19091909
     
    19411941     * @covers WP_Customize_Manager::save_changeset_post
    19421942     */
    1943     function test_save_changeset_post_with_varying_unfiltered_html_cap() {
     1943    public function test_save_changeset_post_with_varying_unfiltered_html_cap() {
    19441944        global $wp_customize;
    19451945        grant_super_admin( self::$admin_user_id );
     
    20132013     * @see WP_Customize_Widgets::customize_register()
    20142014     */
    2015     function test_wp_customize_publish_changeset() {
     2015    public function test_wp_customize_publish_changeset() {
    20162016        global $wp_customize;
    20172017        $wp_customize = null;
     
    20592059     * @covers WP_Customize_Manager::save_changeset_post
    20602060     */
    2061     function test_publish_changeset_with_future_status_when_future_date() {
     2061    public function test_publish_changeset_with_future_status_when_future_date() {
    20622062        $wp_customize = $this->create_test_manager( wp_generate_uuid4() );
    20632063
     
    20802080     * @covers WP_Customize_Manager::get_changeset_post_data
    20812081     */
    2082     function test_save_changeset_post_for_bad_changeset() {
     2082    public function test_save_changeset_post_for_bad_changeset() {
    20832083        $uuid    = wp_generate_uuid4();
    20842084        $post_id = wp_insert_post(
     
    21512151     * @param WP_Customize_Manager $wp_customize Manager.
    21522152     */
    2153     function register_scratchpad_setting( WP_Customize_Manager $wp_customize ) {
     2153    public function register_scratchpad_setting( WP_Customize_Manager $wp_customize ) {
    21542154        $wp_customize->add_setting(
    21552155            'scratchpad',
     
    21682168     * @return string Value.
    21692169     */
    2170     function filter_sanitize_scratchpad( $value ) {
     2170    public function filter_sanitize_scratchpad( $value ) {
    21712171        return apply_filters( 'content_save_pre', $value );
    21722172    }
     
    21862186     * @return mixed Value.
    21872187     */
    2188     function filter_customize_setting_to_log_current_user( $value, $setting ) {
     2188    public function filter_customize_setting_to_log_current_user( $value, $setting ) {
    21892189        $this->filtered_setting_current_user_ids[ $setting->id ] = get_current_user_id();
    21902190        return $value;
     
    21972197     * @covers WP_Customize_Manager::is_cross_domain
    21982198     */
    2199     function test_is_cross_domain() {
     2199    public function test_is_cross_domain() {
    22002200        $wp_customize = new WP_Customize_Manager();
    22012201
     
    22152215     * @covers WP_Customize_Manager::get_allowed_urls
    22162216     */
    2217     function test_get_allowed_urls() {
     2217    public function test_get_allowed_urls() {
    22182218        $wp_customize = new WP_Customize_Manager();
    22192219        $this->assertFalse( is_ssl() );
     
    22332233     * @return array URLs.
    22342234     */
    2235     function filter_customize_allowed_urls( $urls ) {
     2235    public function filter_customize_allowed_urls( $urls ) {
    22362236        $urls[] = 'http://headless.example.com/';
    22372237        return $urls;
     
    22432243     * @group ajax
    22442244     */
    2245     function test_doing_ajax() {
     2245    public function test_doing_ajax() {
    22462246        add_filter( 'wp_doing_ajax', '__return_true' );
    22472247
     
    22572257     * Test ! WP_Customize_Manager::doing_ajax().
    22582258     */
    2259     function test_not_doing_ajax() {
     2259    public function test_not_doing_ajax() {
    22602260        add_filter( 'wp_doing_ajax', '__return_false' );
    22612261
     
    22692269     * @ticket 30988
    22702270     */
    2271     function test_unsanitized_post_values_from_input() {
     2271    public function test_unsanitized_post_values_from_input() {
    22722272        wp_set_current_user( self::$admin_user_id );
    22732273        $manager = $this->manager;
     
    22982298     * @covers WP_Customize_Manager::unsanitized_post_values
    22992299     */
    2300     function test_unsanitized_post_values_with_changeset_and_stashed_theme_mods() {
     2300    public function test_unsanitized_post_values_with_changeset_and_stashed_theme_mods() {
    23012301        wp_set_current_user( self::$admin_user_id );
    23022302
     
    24222422     * @ticket 30988
    24232423     */
    2424     function test_post_value() {
     2424    public function test_post_value() {
    24252425        wp_set_current_user( self::$admin_user_id );
    24262426        $posted_settings     = array(
     
    24462446     * @ticket 34893
    24472447     */
    2448     function test_invalid_post_value() {
     2448    public function test_invalid_post_value() {
    24492449        wp_set_current_user( self::$admin_user_id );
    24502450        $default_value = 'foo_default';
     
    24842484     * @return string|WP_Error
    24852485     */
    2486     function filter_customize_sanitize_foo( $value ) {
     2486    public function filter_customize_sanitize_foo( $value ) {
    24872487        if ( 'return_null_in_sanitize' === $value ) {
    24882488            $value = null;
     
    25032503     * @return WP_Error
    25042504     */
    2505     function filter_customize_validate_foo( $validity, $value ) {
     2505    public function filter_customize_validate_foo( $validity, $value ) {
    25062506        if ( false !== stripos( $value, '<script' ) ) {
    25072507            $validity->add( 'invalid_value_in_validate', __( 'Invalid value.' ), array( 'source' => 'filter_customize_validate_foo' ) );
     
    25152515     * @ticket 37247
    25162516     */
    2517     function test_post_value_validation_sanitization_order() {
     2517    public function test_post_value_validation_sanitization_order() {
    25182518        wp_set_current_user( self::$admin_user_id );
    25192519        $default_value = '0';
     
    25402540     * @return string|WP_Error
    25412541     */
    2542     function filter_customize_sanitize_numeric( $value ) {
     2542    public function filter_customize_sanitize_numeric( $value ) {
    25432543        return absint( $value );
    25442544    }
     
    25512551     * @return WP_Error
    25522552     */
    2553     function filter_customize_validate_numeric( $validity, $value ) {
     2553    public function filter_customize_validate_numeric( $validity, $value ) {
    25542554        if ( ! is_string( $value ) || ! is_numeric( $value ) ) {
    25552555            $validity->add( 'invalid_value_in_validate', __( 'Invalid value.' ), array( 'source' => 'filter_customize_validate_numeric' ) );
     
    25632563     * @see WP_Customize_Manager::validate_setting_values()
    25642564     */
    2565     function test_validate_setting_values() {
     2565    public function test_validate_setting_values() {
    25662566        wp_set_current_user( self::$admin_user_id );
    25672567        $setting = $this->manager->add_setting(
     
    26122612     * @covers WP_Customize_Manager::validate_setting_values
    26132613     */
    2614     function test_late_validate_setting_values() {
     2614    public function test_late_validate_setting_values() {
    26152615        $setting = new Test_Setting_Without_Applying_Validate_Filter( $this->manager, 'required' );
    26162616        $this->manager->add_setting( $setting );
     
    26382638     * @covers WP_Customize_Manager::validate_setting_values
    26392639     */
    2640     function test_validate_setting_values_args() {
     2640    public function test_validate_setting_values_args() {
    26412641        wp_set_current_user( self::$admin_user_id );
    26422642        $this->manager->register_controls();
     
    26762676     * @return WP_Error Validity.
    26772677     */
    2678     function late_validate_length( $validity, $value, $setting ) {
     2678    public function late_validate_length( $validity, $value, $setting ) {
    26792679        $this->assertInstanceOf( 'WP_Customize_Setting', $setting );
    26802680        if ( strlen( $value ) < 10 ) {
     
    26892689     * @ticket 37247
    26902690     */
    2691     function test_validate_setting_values_validation_sanitization_order() {
     2691    public function test_validate_setting_values_validation_sanitization_order() {
    26922692        wp_set_current_user( self::$admin_user_id );
    26932693        $setting    = $this->manager->add_setting(
     
    27102710     * @see WP_Customize_Manager::prepare_setting_validity_for_js()
    27112711     */
    2712     function test_prepare_setting_validity_for_js() {
     2712    public function test_prepare_setting_validity_for_js() {
    27132713        $this->assertTrue( $this->manager->prepare_setting_validity_for_js( true ) );
    27142714        $error = new WP_Error();
     
    27342734     * @see WP_Customize_Manager::set_post_value()
    27352735     */
    2736     function test_set_post_value() {
     2736    public function test_set_post_value() {
    27372737        wp_set_current_user( self::$admin_user_id );
    27382738        $this->manager->add_setting(
     
    27692769     * @return int Value.
    27702770     */
    2771     function sanitize_foo_for_test_set_post_value( $value ) {
     2771    public function sanitize_foo_for_test_set_post_value( $value ) {
    27722772        return (int) $value;
    27732773    }
     
    27882788     * @param mixed ...$args Optional arguments passed to the action.
    27892789     */
    2790     function capture_customize_post_value_set_actions( ...$args ) {
     2790    public function capture_customize_post_value_set_actions( ...$args ) {
    27912791        $action = current_action();
    27922792        $this->captured_customize_post_value_set_actions[] = compact( 'action', 'args' );
     
    27982798     * @ticket 30936
    27992799     */
    2800     function test_add_dynamic_settings() {
     2800    public function test_add_dynamic_settings() {
    28012801        $manager     = $this->manager;
    28022802        $setting_ids = array( 'foo', 'bar' );
     
    28192819     * @covers WP_Customize_Manager::has_published_pages
    28202820     */
    2821     function test_has_published_pages() {
     2821    public function test_has_published_pages() {
    28222822        foreach ( get_pages() as $page ) {
    28232823            wp_delete_post( $page->ID, true );
     
    28482848     * @covers WP_Customize_Manager::has_published_pages
    28492849     */
    2850     function test_has_published_pages_when_nav_menus_created_posts() {
     2850    public function test_has_published_pages_when_nav_menus_created_posts() {
    28512851        foreach ( get_pages() as $page ) {
    28522852            wp_delete_post( $page->ID, true );
     
    28772877     * @ticket 30936
    28782878     */
    2879     function test_register_dynamic_settings() {
     2879    public function test_register_dynamic_settings() {
    28802880        wp_set_current_user( self::$admin_user_id );
    28812881        $posted_settings     = array(
     
    28992899     * In lieu of closures, callback for customize_register action added in test_register_dynamic_settings().
    29002900     */
    2901     function action_customize_register_for_dynamic_settings() {
     2901    public function action_customize_register_for_dynamic_settings() {
    29022902        add_filter( 'customize_dynamic_setting_args', array( $this, 'filter_customize_dynamic_setting_args_for_test_dynamic_settings' ), 10, 2 );
    29032903        add_filter( 'customize_dynamic_setting_class', array( $this, 'filter_customize_dynamic_setting_class_for_test_dynamic_settings' ), 10, 3 );
     
    29112911     * @return array
    29122912     */
    2913     function filter_customize_dynamic_setting_args_for_test_dynamic_settings( $setting_args, $setting_id ) {
     2913    public function filter_customize_dynamic_setting_args_for_test_dynamic_settings( $setting_args, $setting_id ) {
    29142914        $this->assertIsString( $setting_id );
    29152915        if ( in_array( $setting_id, array( 'foo', 'bar' ), true ) ) {
     
    29272927     * @return string
    29282928     */
    2929     function filter_customize_dynamic_setting_class_for_test_dynamic_settings( $setting_class, $setting_id, $setting_args ) {
     2929    public function filter_customize_dynamic_setting_class_for_test_dynamic_settings( $setting_class, $setting_id, $setting_args ) {
    29302930        $this->assertSame( 'WP_Customize_Setting', $setting_class );
    29312931        $this->assertIsString( $setting_id );
     
    29392939     * @see WP_Customize_Manager::get_document_title_template()
    29402940     */
    2941     function test_get_document_title_template() {
     2941    public function test_get_document_title_template() {
    29422942        $tpl = $this->manager->get_document_title_template();
    29432943        $this->assertStringContainsString( '%s', $tpl );
     
    29502950     * @see WP_Customize_Manager::set_preview_url()
    29512951     */
    2952     function test_preview_url() {
     2952    public function test_preview_url() {
    29532953        $this->assertSame( home_url( '/' ), $this->manager->get_preview_url() );
    29542954        $preview_url = home_url( '/foo/bar/baz/' );
     
    29652965     * @see WP_Customize_Manager::set_return_url()
    29662966     */
    2967     function test_return_url() {
     2967    public function test_return_url() {
    29682968        wp_set_current_user( self::factory()->user->create( array( 'role' => 'author' ) ) );
    29692969        $this->assertSame( home_url( '/' ), $this->manager->get_return_url() );
     
    30003000     * @ticket 46686
    30013001     */
    3002     function test_return_url_with_deactivated_theme() {
     3002    public function test_return_url_with_deactivated_theme() {
    30033003        $this->manager->set_return_url( admin_url( 'themes.php?page=mytheme_documentation' ) );
    30043004        $this->assertSame( admin_url( 'themes.php' ), $this->manager->get_return_url() );
     
    30113011     * @see WP_Customize_Manager::set_autofocus()
    30123012     */
    3013     function test_autofocus() {
     3013    public function test_autofocus() {
    30143014        $this->assertEmpty( $this->manager->get_autofocus() );
    30153015
     
    30393039     * @see WP_Customize_Manager::get_nonces()
    30403040     */
    3041     function test_nonces() {
     3041    public function test_nonces() {
    30423042        $nonces = $this->manager->get_nonces();
    30433043        $this->assertIsArray( $nonces );
     
    30583058     * @return array Nonces.
    30593059     */
    3060     function filter_customize_refresh_nonces( $nonces, $manager ) {
     3060    public function filter_customize_refresh_nonces( $nonces, $manager ) {
    30613061        $this->assertInstanceOf( 'WP_Customize_Manager', $manager );
    30623062        $nonces['foo'] = wp_create_nonce( 'foo' );
     
    30693069     * @see WP_Customize_Manager::customize_pane_settings()
    30703070     */
    3071     function test_customize_pane_settings() {
     3071    public function test_customize_pane_settings() {
    30723072        wp_set_current_user( self::$admin_user_id );
    30733073        $this->manager->register_controls();
     
    31203120     * @covers WP_Customize_Manager::remove_frameless_preview_messenger_channel
    31213121     */
    3122     function test_remove_frameless_preview_messenger_channel() {
     3122    public function test_remove_frameless_preview_messenger_channel() {
    31233123        wp_set_current_user( self::$admin_user_id );
    31243124        $manager = new WP_Customize_Manager( array( 'messenger_channel' => null ) );
     
    31403140     * @see WP_Customize_Manager::customize_preview_settings()
    31413141     */
    3142     function test_customize_preview_settings() {
     3142    public function test_customize_preview_settings() {
    31433143        wp_set_current_user( self::$admin_user_id );
    31443144        $this->manager->register_controls();
     
    31723172     * @ticket 33552
    31733173     */
    3174     function test_customize_loaded_components_filter() {
     3174    public function test_customize_loaded_components_filter() {
    31753175        $manager = new WP_Customize_Manager();
    31763176        $this->assertInstanceOf( 'WP_Customize_Widgets', $manager->widgets );
     
    32043204     * @return array Components.
    32053205     */
    3206     function return_array_containing_widgets( $components, $customize_manager ) {
     3206    public function return_array_containing_widgets( $components, $customize_manager ) {
    32073207        $this->assertIsArray( $components );
    32083208        $this->assertContains( 'widgets', $components );
     
    32213221     * @return array Components.
    32223222     */
    3223     function return_array_containing_nav_menus( $components, $customize_manager ) {
     3223    public function return_array_containing_nav_menus( $components, $customize_manager ) {
    32243224        $this->assertIsArray( $components );
    32253225        $this->assertContains( 'widgets', $components );
     
    32343234     * @ticket 34594
    32353235     */
    3236     function test_prepare_controls_stable_sorting() {
     3236    public function test_prepare_controls_stable_sorting() {
    32373237        $manager = new WP_Customize_Manager();
    32383238        $manager->register_controls();
     
    32743274     * @ticket 34596
    32753275     */
    3276     function test_add_section_return_instance() {
     3276    public function test_add_section_return_instance() {
    32773277        $manager = new WP_Customize_Manager();
    32783278        wp_set_current_user( self::$admin_user_id );
     
    33083308     * @ticket 34596
    33093309     */
    3310     function test_add_setting_return_instance() {
     3310    public function test_add_setting_return_instance() {
    33113311        $manager = new WP_Customize_Manager();
    33123312        wp_set_current_user( self::$admin_user_id );
     
    33293329     * @ticket 34597
    33303330     */
    3331     function test_add_setting_honoring_dynamic() {
     3331    public function test_add_setting_honoring_dynamic() {
    33323332        $manager = new WP_Customize_Manager();
    33333333
     
    33543354     * @return string       Setting class.
    33553355     */
    3356     function return_dynamic_customize_setting_class( $class, $id, $args ) {
     3356    public function return_dynamic_customize_setting_class( $class, $id, $args ) {
    33573357        unset( $args );
    33583358        if ( 0 === strpos( $id, 'dynamic' ) ) {
     
    33693369     * @return string      Setting args.
    33703370     */
    3371     function return_dynamic_customize_setting_args( $args, $id ) {
     3371    public function return_dynamic_customize_setting_args( $args, $id ) {
    33723372        if ( 0 === strpos( $id, 'dynamic' ) ) {
    33733373            $args['custom'] = 'foo';
     
    33793379     * @ticket 34596
    33803380     */
    3381     function test_add_panel_return_instance() {
     3381    public function test_add_panel_return_instance() {
    33823382        $manager = new WP_Customize_Manager();
    33833383        wp_set_current_user( self::$admin_user_id );
     
    34123412     * @ticket 34596
    34133413     */
    3414     function test_add_control_return_instance() {
     3414    public function test_add_control_return_instance() {
    34153415        $manager    = new WP_Customize_Manager();
    34163416        $section_id = 'foo-section';
     
    34603460     * @ticket 31195
    34613461     */
    3462     function test_get_previewable_devices() {
     3462    public function test_get_previewable_devices() {
    34633463
    34643464        // Setup the instance.
     
    34973497     * @return array
    34983498     */
    3499     function filtered_device_list() {
     3499    private function filtered_device_list() {
    35003500        return array(
    35013501            'custom-device' => array(
     
    35133513     * @return array
    35143514     */
    3515     function filter_customize_previewable_devices( $devices ) {
     3515    public function filter_customize_previewable_devices( $devices ) {
    35163516        return $this->filtered_device_list();
    35173517    }
     
    35203520     * @ticket 37128
    35213521     */
    3522     function test_prepare_controls_wp_list_sort_controls() {
     3522    public function test_prepare_controls_wp_list_sort_controls() {
    35233523        wp_set_current_user( self::$admin_user_id );
    35243524
     
    35533553     * @ticket 37128
    35543554     */
    3555     function test_prepare_controls_wp_list_sort_sections() {
     3555    public function test_prepare_controls_wp_list_sort_sections() {
    35563556        wp_set_current_user( self::$admin_user_id );
    35573557
     
    35823582     * @ticket 37128
    35833583     */
    3584     function test_prepare_controls_wp_list_sort_panels() {
     3584    public function test_prepare_controls_wp_list_sort_panels() {
    35853585        wp_set_current_user( self::$admin_user_id );
    35863586
     
    36133613     * @ticket 39125
    36143614     */
    3615     function test_sanitize_external_header_video_trim() {
     3615    public function test_sanitize_external_header_video_trim() {
    36163616        $this->manager->register_controls();
    36173617        $setting   = $this->manager->get_setting( 'external_header_video' );
Note: See TracChangeset for help on using the changeset viewer.