Make WordPress Core


Ignore:
Timestamp:
11/29/2022 12:32:37 PM (20 months ago)
Author:
SergeyBiryukov
Message:

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

Adds a public visibility to test fixtures, tests, data providers, and callbacks methods. This continues the previous efforts to make sure visibility is declared on all methods.

Note: This will be enforced by WPCS 3.0.0.

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

Props jrf.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r54861 r54889  
    20702070     * @covers ::wp_recursive_ksort
    20712071     */
    2072     function test_wp_recursive_ksort() {
     2072    public function test_wp_recursive_ksort() {
    20732073        // Create an array to test.
    20742074        $theme_json = array(
Note: See TracChangeset for help on using the changeset viewer.