Skip to content

Commit

Permalink
Add CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Dec 24, 2023
1 parent 0074b28 commit 268d050
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/behat/features/plugin-list-checks.feature
Original file line number Diff line number Diff line change
@@ -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"}]
"""

0 comments on commit 268d050

Please sign in to comment.