Make WordPress Core

Changeset 53851


Ignore:
Timestamp:
08/07/2022 02:20:02 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Remove unused dynamic property in Tests_WP_Customize_*.

The dynamically created $undefined property appears to be a copy/paste from the Tests_WP_Customize_Setting class, and is not actually used in other test classes:

  • Tests_WP_Customize_Manager
  • Tests_WP_Customize_Panel
  • Tests_WP_Customize_Section

Follow-up to [31329], [32658].

Props jrf.
See #56033.

Location:
trunk/tests/phpunit/tests/customize
Files:
3 edited

Legend:

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

    r52010 r53851  
    5757        parent::set_up();
    5858        require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
    59         $this->manager   = $this->instantiate();
    60         $this->undefined = new stdClass();
     59        $this->manager = $this->instantiate();
    6160
    6261        $orig_file       = DIR_TESTDATA . '/images/canola.jpg';
  • trunk/tests/phpunit/tests/customize/panel.php

    r52010 r53851  
    1818        $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    1919        $this->manager           = $GLOBALS['wp_customize'];
    20         $this->undefined         = new stdClass();
    2120    }
    2221
  • trunk/tests/phpunit/tests/customize/section.php

    r52010 r53851  
    2525        $GLOBALS['wp_customize'] = new WP_Customize_Manager();
    2626        $this->manager           = $GLOBALS['wp_customize'];
    27         $this->undefined         = new stdClass();
    2827    }
    2928
Note: See TracChangeset for help on using the changeset viewer.