[wp-trac] [WordPress Trac] #54177: Add visibility to test class methods
WordPress Trac
noreply at wordpress.org
Thu Nov 4 15:23:03 UTC 2021
#54177: Add visibility to test class methods
---------------------------------------------+-----------------------------
Reporter: costdev | Owner: hellofromTonya
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: coding-
| standards
---------------------------------------------+-----------------------------
Changes (by hellofromTonya):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"52010" 52010]:
{{{
#!CommitTicketReference repository="" revision="52010"
Coding Standards: Add visibility to methods in `tests/phpunit/tests/`.
Adds a `public` visibility to test fixtures, tests, data providers, and
callbacks methods.
Adds a `private` visibility to helper methods within test classes.
Renames callbacks and helpers that previously started with a `_` prefix.
Why? For consistency and to leverage using the method visibility. Further
naming standardizations is beyond the scope of this commit.
Props costdev, jrf, hellofromTonya.
Fixes #54177.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54177#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list