Make WordPress Core


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

    r54829 r54889  
    218218     * @return string The filtered fields.
    219219     */
    220     function filter_posts_fields( $fields ) {
     220    public function filter_posts_fields( $fields ) {
    221221        return "$fields, 1 as test_post_fields";
    222222    }
     
    228228     * @return array The filtered database clauses.
    229229     */
    230     function filter_posts_clauses( $clauses ) {
     230    public function filter_posts_clauses( $clauses ) {
    231231        $clauses['fields'] .= ', 2 as test_post_clauses';
    232232        return $clauses;
Note: See TracChangeset for help on using the changeset viewer.