Make WordPress Core


Ignore:
Timestamp:
06/30/2021 06:21:52 PM (3 years ago)
Author:
SergeyBiryukov
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].

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme/wpThemeJson.php

    r51281 r51287  
    1717     * @ticket 52991
    1818     */
    19     function test_get_settings() {
     19    public function test_get_settings() {
    2020        $theme_json = new WP_Theme_JSON(
    2121            array(
     
    6868     * @ticket 53397
    6969     */
    70     function test_get_settings_presets_are_keyed_by_origin() {
     70    public function test_get_settings_presets_are_keyed_by_origin() {
    7171        $core_origin = new WP_Theme_JSON(
    7272            array(
     
    196196     * @ticket 53175
    197197     */
    198     function test_get_stylesheet() {
     198    public function test_get_stylesheet() {
    199199        $theme_json = new WP_Theme_JSON(
    200200            array(
     
    317317     * @ticket 52991
    318318     */
    319     function test_get_stylesheet_preset_classes_work_with_compounded_selectors() {
     319    public function test_get_stylesheet_preset_classes_work_with_compounded_selectors() {
    320320        $theme_json = new WP_Theme_JSON(
    321321            array(
     
    347347     * @ticket 53175
    348348     */
    349     function test_get_stylesheet_preset_rules_come_after_block_rules() {
     349    public function test_get_stylesheet_preset_rules_come_after_block_rules() {
    350350        $theme_json = new WP_Theme_JSON(
    351351            array(
     
    671671     * @ticket 52991
    672672     */
    673     function test_get_from_editor_settings() {
     673    public function test_get_from_editor_settings() {
    674674        $input = array(
    675675            'disableCustomColors'    => true,
     
    747747     * @ticket 52991
    748748     */
    749     function test_get_editor_settings_no_theme_support() {
     749    public function test_get_editor_settings_no_theme_support() {
    750750        $input = array(
    751751            '__unstableEnableFullSiteEditingBlocks' => false,
     
    802802     * @ticket 52991
    803803     */
    804     function test_get_editor_settings_blank() {
     804    public function test_get_editor_settings_blank() {
    805805        $expected = array(
    806806            'version'  => WP_Theme_JSON::LATEST_SCHEMA,
     
    815815     * @ticket 52991
    816816     */
    817     function test_get_editor_settings_custom_units_can_be_disabled() {
     817    public function test_get_editor_settings_custom_units_can_be_disabled() {
    818818        add_theme_support( 'custom-units', array() );
    819819        $input = get_default_block_editor_settings();
     
    832832     * @ticket 52991
    833833     */
    834     function test_get_editor_settings_custom_units_can_be_enabled() {
     834    public function test_get_editor_settings_custom_units_can_be_enabled() {
    835835        add_theme_support( 'custom-units' );
    836836        $input = get_default_block_editor_settings();
     
    849849     * @ticket 52991
    850850     */
    851     function test_get_editor_settings_custom_units_can_be_filtered() {
     851    public function test_get_editor_settings_custom_units_can_be_filtered() {
    852852        add_theme_support( 'custom-units', 'rem', 'em' );
    853853        $input = get_default_block_editor_settings();
Note: See TracChangeset for help on using the changeset viewer.