-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e79e77
commit e965985
Showing
6 changed files
with
85 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
Feature: Test that the WP-CLI plugin list check categories command works. | ||
|
||
Scenario: List check categories in JSON format | ||
Scenario: List check categories | ||
Given a WP install with the Plugin Check plugin | ||
|
||
When I try the WP-CLI command `plugin list-check-categories --format=json` | ||
When I run the WP-CLI command `plugin list-check-categories --format=json` | ||
Then STDOUT should be JSON containing: | ||
""" | ||
[{"name":"General","slug":"general"}] | ||
""" | ||
|
||
When I run the WP-CLI command `plugin list-check-categories --format=csv --fields=slug,name` | ||
Then STDOUT should contain: | ||
""" | ||
plugin_repo,"Plugin repo" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
Feature: Test that the WP-CLI plugin list checks command works. | ||
|
||
Scenario: List checks in JSON format | ||
Scenario: List checks | ||
Given a WP install with the Plugin Check plugin | ||
|
||
When I try the WP-CLI command `plugin list-checks --format=json` | ||
When I run the WP-CLI command `plugin list-checks --format=json` | ||
Then STDOUT should be JSON containing: | ||
""" | ||
[{"slug":"i18n_usage","category":"general","stability":"stable"}] | ||
""" | ||
|
||
When I run the WP-CLI command `plugin list-checks --format=csv --fields=slug,category` | ||
Then STDOUT should contain: | ||
""" | ||
plugin_header_text_domain,plugin_repo | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters