diff --git a/tests/behat/features/plugin-list-checks.feature b/tests/behat/features/plugin-list-checks.feature new file mode 100644 index 000000000..32017a664 --- /dev/null +++ b/tests/behat/features/plugin-list-checks.feature @@ -0,0 +1,10 @@ +Feature: Test that the WP-CLI plugin list checks command works. + + Scenario: Listing of checks in JSON format + Given a WP install with the Plugin Check plugin + + When I try the WP-CLI command `plugin list-checks --format=json` + Then STDOUT should be JSON containing: + """ + [{"slug":"i18n_usage","category":"general","stability":"stable"}] + """