Make WordPress Core


Ignore:
Timestamp:
07/02/2021 12:24:08 PM (4 years ago)
Author:
desrosj
Message:

Coding Standards: Add missing visibility keywords to WP_Theme, WP_Theme_JSON, and WP_Theme_JSON_Resolver tests.

Follow-up to [50959], [50960], [50967].

Props SergeyBiryukov.
Merges [51287] to the 5.8 branch.
Fixes #52627.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/tests/phpunit/tests/theme/wpThemeJson.php

    r51198 r51305  
    1717     * @ticket 52991
    1818     */
    19     function test_get_settings() {
     19    public function test_get_settings() {
    2020        $theme_json = new WP_Theme_JSON(
    2121            array(
     
    6565    }
    6666
    67     function test_get_settings_presets_are_keyed_by_origin() {
     67    public function test_get_settings_presets_are_keyed_by_origin() {
    6868        $core_origin = new WP_Theme_JSON(
    6969            array(
     
    190190    }
    191191
    192     function test_get_stylesheet() {
     192    public function test_get_stylesheet() {
    193193        $theme_json = new WP_Theme_JSON(
    194194            array(
     
    308308    }
    309309
    310     function test_get_stylesheet_preset_classes_work_with_compounded_selectors() {
     310    public function test_get_stylesheet_preset_classes_work_with_compounded_selectors() {
    311311        $theme_json = new WP_Theme_JSON(
    312312            array(
     
    335335    }
    336336
    337     function test_get_stylesheet_preset_rules_come_after_block_rules() {
     337    public function test_get_stylesheet_preset_rules_come_after_block_rules() {
    338338        $theme_json = new WP_Theme_JSON(
    339339            array(
     
    656656     * @ticket 52991
    657657     */
    658     function test_get_from_editor_settings() {
     658    public function test_get_from_editor_settings() {
    659659        $input = array(
    660660            'disableCustomColors'    => true,
     
    732732     * @ticket 52991
    733733     */
    734     function test_get_editor_settings_no_theme_support() {
     734    public function test_get_editor_settings_no_theme_support() {
    735735        $input = array(
    736736            '__unstableEnableFullSiteEditingBlocks' => false,
     
    787787     * @ticket 52991
    788788     */
    789     function test_get_editor_settings_blank() {
     789    public function test_get_editor_settings_blank() {
    790790        $expected = array(
    791791            'version'  => WP_Theme_JSON::LATEST_SCHEMA,
     
    800800     * @ticket 52991
    801801     */
    802     function test_get_editor_settings_custom_units_can_be_disabled() {
     802    public function test_get_editor_settings_custom_units_can_be_disabled() {
    803803        add_theme_support( 'custom-units', array() );
    804804        $input = get_default_block_editor_settings();
     
    817817     * @ticket 52991
    818818     */
    819     function test_get_editor_settings_custom_units_can_be_enabled() {
     819    public function test_get_editor_settings_custom_units_can_be_enabled() {
    820820        add_theme_support( 'custom-units' );
    821821        $input = get_default_block_editor_settings();
     
    834834     * @ticket 52991
    835835     */
    836     function test_get_editor_settings_custom_units_can_be_filtered() {
     836    public function test_get_editor_settings_custom_units_can_be_filtered() {
    837837        add_theme_support( 'custom-units', 'rem', 'em' );
    838838        $input = get_default_block_editor_settings();
Note: See TracChangeset for help on using the changeset viewer.