Skip to content

Commit 12d0d6d

Browse files
Tests: Make the remaining data providers public and static.
Developed in: #15439 #15440 #15441 Props devmuhib, mukesh27, huzaifaalmesbah. See #66211. git-svn-id: https://develop.svn.wordpress.org/trunk@65400 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 31a6fb4 commit 12d0d6d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/phpunit/tests/admin/includesUpdate.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static function ( $value ) use ( &$reads ) {
120120
/**
121121
* @return array[]
122122
*/
123-
public function data_non_plugin_translation_updates() {
123+
public static function data_non_plugin_translation_updates() {
124124
return array(
125125
'no updates' => array( null ),
126126
'core only' => array( 'core' ),
@@ -520,7 +520,7 @@ static function ( $key ) use ( $updates ) {
520520
*
521521
* @return array[]
522522
*/
523-
public function data_translation_update_selections() {
523+
public static function data_translation_update_selections() {
524524
return array(
525525
'select all form updates' => array(
526526
array( 'core', 'plugin', 'theme' ),

‎tests/phpunit/tests/admin/languagePackUpgrader.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function test_bulk_upgrade_should_clear_only_successful_deferrals( $outco
105105
*
106106
* @return array[]
107107
*/
108-
public function data_bulk_upgrade_results() {
108+
public static function data_bulk_upgrade_results() {
109109
return array(
110110
'all package types succeed' => array(
111111
array( 'success', 'success', 'success' ),

‎tests/phpunit/tests/query/randomContentRedirect.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ function ( $arg ) {
14551455
*
14561456
* @return array<string, array{array<int, mixed>}>
14571457
*/
1458-
public function data_invalid_arguments(): array {
1458+
public static function data_invalid_arguments(): array {
14591459
return array(
14601460
'nulls' => array( array( null, null, false, null ) ),
14611461
'strings' => array( array( 'random', 'random', 'yes', 'random' ) ),

0 commit comments

Comments
 (0)