Skip to content

Commit d38e2df

Browse files
author
Erika Gili
committed
Remove tests on en_US language
1 parent 35070db commit d38e2df

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎features/language-plugin.feature‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Feature: Manage translation files for a WordPress install
1717
| language | english_name | status |
1818
| cs_CZ | Czech | uninstalled |
1919
| de_DE | German | uninstalled |
20-
| en_US | English (United States) | active |
2120
| en_GB | English (UK) | uninstalled |
2221

2322
When I try `wp language plugin list not-a-plugin --format=json`
@@ -85,15 +84,13 @@ Feature: Manage translation files for a WordPress install
8584
| language | english_name | status |
8685
| cs_CZ | Czech | installed |
8786
| de_DE | German | installed |
88-
| en_US | English (United States) | active |
8987
| en_GB | English (UK) | installed |
9088

9189
When I run `wp language plugin list hello-dolly --fields=language,english_name,update`
9290
Then STDOUT should be a table containing rows:
9391
| language | english_name | update |
9492
| cs_CZ | Czech | none |
9593
| de_DE | German | none |
96-
| en_US | English (United States) | none |
9794
| en_GB | English (UK) | none |
9895

9996
When I run `wp language plugin list hello-dolly --status=installed --format=count`

‎features/language-theme.feature‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Feature: Manage translation files for a WordPress install
1616
| language | english_name | status |
1717
| cs_CZ | Czech | uninstalled |
1818
| de_DE | German | uninstalled |
19-
| en_US | English (United States) | active |
2019
| en_GB | English (UK) | uninstalled |
2120

2221
When I try `wp language theme list not-a-theme --format=json`
@@ -85,7 +84,6 @@ Feature: Manage translation files for a WordPress install
8584
| cs_CZ | Czech | installed |
8685
| de_DE | German | installed |
8786
| en_GB | English (UK) | installed |
88-
| en_US | English (United States) | active |
8987

9088
When I run `wp language theme list twentyten --fields=language,english_name,update`
9189
Then STDOUT should be a table containing rows:
@@ -119,7 +117,6 @@ Feature: Manage translation files for a WordPress install
119117
| language | english_name | status |
120118
| cs_CZ | Czech | installed |
121119
| de_DE | German | installed |
122-
| en_US | English (United States) | uninstalled |
123120
| en_GB | English (UK) | active |
124121

125122
When I run `wp language theme uninstall twentyten cs_CZ de_DE`

‎src/WP_CLI/CommandWithTranslation.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ protected function download_language_pack( $download, $slug = null ) {
251251
protected function get_installed_languages( $slug = 'default' ) {
252252
$available = wp_get_installed_translations( $this->obj_type );
253253
$available = ! empty( $available[ $slug ] ) ? array_keys( $available[ $slug ] ) : array();
254-
if ( 'default' === $slug ) {
254+
if ( 'core' === $this->obj_type ) {
255255
$available[] = 'en_US';
256256
}
257257

0 commit comments

Comments
 (0)