mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54889 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -217,7 +217,7 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase {
|
||||
* @param string $fields The fields to SELECT.
|
||||
* @return string The filtered fields.
|
||||
*/
|
||||
function filter_posts_fields( $fields ) {
|
||||
public function filter_posts_fields( $fields ) {
|
||||
return "$fields, 1 as test_post_fields";
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase {
|
||||
* @param array $clauses The WP_Query database clauses.
|
||||
* @return array The filtered database clauses.
|
||||
*/
|
||||
function filter_posts_clauses( $clauses ) {
|
||||
public function filter_posts_clauses( $clauses ) {
|
||||
$clauses['fields'] .= ', 2 as test_post_clauses';
|
||||
return $clauses;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user