Make WordPress Core

Changeset 54890


Ignore:
Timestamp:
11/29/2022 12:40:08 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

Adds a private visibility to some test class properties where it was not explicitly specified. This continues the previous efforts to make sure visibility is declared on all properties.

Note: This will be enforced by WPCS 3.0.0.

Follow-up to [49184], [51919], [52009], [52010], [54889].

Props jrf.
See #56791.

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/menu/wp-nav-menu.php

    r54801 r54890  
    88class Tests_Menu_wpNavMenu extends WP_UnitTestCase {
    99
    10         static $menu_id        = 0;
    11         static $lvl0_menu_item = 0;
    12         static $lvl1_menu_item = 0;
    13         static $lvl2_menu_item = 0;
    14         static $lvl3_menu_item = 0;
     10        private static $menu_id        = 0;
     11        private static $lvl0_menu_item = 0;
     12        private static $lvl1_menu_item = 0;
     13        private static $lvl2_menu_item = 0;
     14        private static $lvl3_menu_item = 0;
    1515
    1616        public static function set_up_before_class() {
  • trunk/tests/phpunit/tests/query/fieldsClause.php

    r54889 r54890  
    1212         * @var int[]
    1313         */
    14         static $post_ids = array();
     14        private static $post_ids = array();
    1515
    1616        /**
    … …  
    1919         * @var int[]
    2020         */
    21         static $page_ids = array();
     21        private static $page_ids = array();
    2222
    2323        public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
Note: See TracChangeset for help on using the changeset viewer.