Make WordPress Core


Ignore:
Timestamp:
06/30/2021 06:21:52 PM (5 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/wpThemeJsonResolver.php

    r51196 r51287  
    1313class Tests_Theme_wpThemeJsonResolver extends WP_UnitTestCase {
    1414
    15         function setUp() {
     15        public function setUp() {
    1616                parent::setUp();
    1717                $this->theme_root = realpath( DIR_TESTDATA . '/themedir1' );
     
    3030        }
    3131
    32         function tearDown() {
     32        public function tearDown() {
    3333                $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
    3434                wp_clean_themes_cache();
     
    3737        }
    3838
    39         function filter_set_theme_root() {
     39        public function filter_set_theme_root() {
    4040                return $this->theme_root;
    4141        }
    4242
    43         function filter_set_locale_to_polish() {
     43        public function filter_set_locale_to_polish() {
    4444                return 'pl_PL';
    4545        }
     
    4848         * @ticket 52991
    4949         */
    50         function test_fields_are_extracted() {
     50        public function test_fields_are_extracted() {
    5151                $actual = WP_Theme_JSON_Resolver::get_fields_to_translate();
    5252
     
    9595         * @ticket 52991
    9696         */
    97         function test_translations_are_applied() {
     97        public function test_translations_are_applied() {
    9898                add_filter( 'locale', array( $this, 'filter_set_locale_to_polish' ) );
    9999                load_textdomain( 'fse', realpath( DIR_TESTDATA . '/languages/themes/fse-pl_PL.mo' ) );
     
    149149         * @ticket 52991
    150150         */
    151         function test_switching_themes_recalculates_data() {
     151        public function test_switching_themes_recalculates_data() {
    152152                // By default, the theme for unit tests is "default",
    153153                // which doesn't have theme.json support.
Note: See TracChangeset for help on using the changeset viewer.