Skip to content

Commit

Permalink
Increase the number of strings tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
costdev committed Oct 17, 2023
1 parent 77e8e3a commit d0a67cd
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions tests/phpunit/tests/admin/wpUpgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,31 @@ public function test_init_should_initialize_strings( $key ) {
* @return array[]
*/
public function data_init_should_initialize_strings() {
return array(
'bad_request' => array( 'key' => 'bad_request' ),
'fs_unavailable' => array( 'key' => 'fs_unavailable' ),
'fs_error' => array( 'key' => 'fs_error' ),
'fs_no_root_dir' => array( 'key' => 'fs_no_root_dir' ),
'fs_no_content_dir' => array( 'key' => 'fs_no_content_dir' ),
'fs_no_plugins_dir' => array( 'key' => 'fs_no_plugins_dir' ),
'fs_no_themes_dir' => array( 'key' => 'fs_no_themes_dir' ),
'fs_no_folder' => array( 'key' => 'fs_no_folder' ),
'download_failed' => array( 'key' => 'download_failed' ),
'installing_package' => array( 'key' => 'installing_package' ),
'no_files' => array( 'key' => 'no_files' ),
'folder_exists' => array( 'key' => 'folder_exists' ),
'mkdir_failed' => array( 'key' => 'mkdir_failed' ),
'incompatible_archive' => array( 'key' => 'incompatible_archive' ),
'files_not_writable' => array( 'key' => 'files_not_writable' ),
'maintenance_start' => array( 'key' => 'maintenance_start' ),
'maintenance_end' => array( 'key' => 'maintenance_end' ),
return self::text_array_to_dataprovider(
array(
'bad_request',
'fs_unavailable',
'fs_error',
'fs_no_root_dir',
'fs_no_content_dir',
'fs_no_plugins_dir',
'fs_no_themes_dir',
'fs_no_folder',
'no_package',
'download_failed',
'installing_package',
'no_files',
'folder_exists',
'mkdir_failed',
'incompatible_archive',
'files_not_writable',
'maintenance_start',
'maintenance_end',
'temp_backup_mkdir_failed',
'temp_backup_move_failed',
'temp_backup_restore_failed',
'temp_backup_delete_failed',
)
);
}

Expand Down

0 comments on commit d0a67cd

Please sign in to comment.