Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions features/language-core.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down
6 changes: 6 additions & 0 deletions features/language-plugin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down
6 changes: 6 additions & 0 deletions features/language-theme.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down
1 change: 1 addition & 0 deletions src/Core_Language_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Core_Language_Command extends WP_CLI\CommandWithTranslation {
* - table
* - csv
* - json
* - count
* ---
*
* ## AVAILABLE FIELDS
Expand Down
1 change: 1 addition & 0 deletions src/Plugin_Language_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class Plugin_Language_Command extends WP_CLI\CommandWithTranslation {
* - table
* - csv
* - json
* - count
* ---
*
* ## AVAILABLE FIELDS
Expand Down
1 change: 1 addition & 0 deletions src/Theme_Language_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class Theme_Language_Command extends WP_CLI\CommandWithTranslation {
* - table
* - csv
* - json
* - count
* ---
*
* ## AVAILABLE FIELDS
Expand Down