Make WordPress Core


Ignore:
Timestamp:
11/29/2022 12:32:37 PM (2 years 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/user/query.php

    r54402 r54889  
    20122012     * @return array
    20132013     */
    2014     function data_returning_field_subset_as_string() {
     2014    public function data_returning_field_subset_as_string() {
    20152015        $data = array(
    20162016            'id'            => array(
     
    20942094     * @return array
    20952095     */
    2096     function data_returning_field_subset_as_array() {
     2096    public function data_returning_field_subset_as_array() {
    20972097        $data = array(
    20982098            'id'                 => array(
Note: See TracChangeset for help on using the changeset viewer.