mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-04 12:01:40 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54890 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -7,11 +7,11 @@
|
|||||||
*/
|
*/
|
||||||
class Tests_Menu_wpNavMenu extends WP_UnitTestCase {
|
class Tests_Menu_wpNavMenu extends WP_UnitTestCase {
|
||||||
|
|
||||||
static $menu_id = 0;
|
private static $menu_id = 0;
|
||||||
static $lvl0_menu_item = 0;
|
private static $lvl0_menu_item = 0;
|
||||||
static $lvl1_menu_item = 0;
|
private static $lvl1_menu_item = 0;
|
||||||
static $lvl2_menu_item = 0;
|
private static $lvl2_menu_item = 0;
|
||||||
static $lvl3_menu_item = 0;
|
private static $lvl3_menu_item = 0;
|
||||||
|
|
||||||
public static function set_up_before_class() {
|
public static function set_up_before_class() {
|
||||||
parent::set_up_before_class();
|
parent::set_up_before_class();
|
||||||
|
|||||||
@@ -11,14 +11,14 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase {
|
|||||||
*
|
*
|
||||||
* @var int[]
|
* @var int[]
|
||||||
*/
|
*/
|
||||||
static $post_ids = array();
|
private static $post_ids = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Page IDs.
|
* Page IDs.
|
||||||
*
|
*
|
||||||
* @var int[]
|
* @var int[]
|
||||||
*/
|
*/
|
||||||
static $page_ids = array();
|
private static $page_ids = array();
|
||||||
|
|
||||||
public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
|
public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
|
||||||
// Register CPT for use with shared fixtures.
|
// Register CPT for use with shared fixtures.
|
||||||
|
|||||||
Reference in New Issue
Block a user