diff --git a/features/language-core.feature b/features/language-core.feature index 39b441c2..e861a237 100644 --- a/features/language-core.feature +++ b/features/language-core.feature @@ -77,6 +77,12 @@ Feature: Manage translation files for a WordPress install | ar | Arabic | uninstalled | | en_GB | English (UK) | installed | + When I run `wp language core list --status=installed --format=count` + Then STDOUT should be: + """ + 4 + """ + When I run `wp site switch-language en_GB` Then STDOUT should be: """ diff --git a/features/language-plugin.feature b/features/language-plugin.feature index ab39afc7..c55a6647 100644 --- a/features/language-plugin.feature +++ b/features/language-plugin.feature @@ -96,6 +96,12 @@ Feature: Manage translation files for a WordPress install | en_US | English (United States) | none | | en_GB | English (UK) | none | + When I run `wp language plugin list hello-dolly --status=installed --format=count` + Then STDOUT should be: + """ + 3 + """ + When I run `wp language plugin update --all` Then STDOUT should contain: """ diff --git a/features/language-theme.feature b/features/language-theme.feature index fb28605f..b210ae8e 100644 --- a/features/language-theme.feature +++ b/features/language-theme.feature @@ -95,6 +95,12 @@ Feature: Manage translation files for a WordPress install | en_GB | English (UK) | none | | en_US | English (United States) | none | + When I run `wp language theme list twentyten --status=installed --format=count` + Then STDOUT should be: + """ + 3 + """ + When I run `wp language theme update --all` Then STDOUT should contain: """ diff --git a/src/Core_Language_Command.php b/src/Core_Language_Command.php index 377065be..21c82439 100644 --- a/src/Core_Language_Command.php +++ b/src/Core_Language_Command.php @@ -67,6 +67,7 @@ class Core_Language_Command extends WP_CLI\CommandWithTranslation { * - table * - csv * - json + * - count * --- * * ## AVAILABLE FIELDS diff --git a/src/Plugin_Language_Command.php b/src/Plugin_Language_Command.php index 1de0d9e8..96364061 100644 --- a/src/Plugin_Language_Command.php +++ b/src/Plugin_Language_Command.php @@ -76,6 +76,7 @@ class Plugin_Language_Command extends WP_CLI\CommandWithTranslation { * - table * - csv * - json + * - count * --- * * ## AVAILABLE FIELDS diff --git a/src/Theme_Language_Command.php b/src/Theme_Language_Command.php index 9e5de6e2..aaf173e0 100644 --- a/src/Theme_Language_Command.php +++ b/src/Theme_Language_Command.php @@ -76,6 +76,7 @@ class Theme_Language_Command extends WP_CLI\CommandWithTranslation { * - table * - csv * - json + * - count * --- * * ## AVAILABLE FIELDS