跳转到主要内容

Then /^STDOUT should be a JSON array containing:$/

Expect valid JSON array output in STDOUT.


Usage

Errors when some items are missing from the expected array.

Scenario: My example scenario
  When I run `wp plugin list --field=name --format=json`
  Then STDOUT should be a JSON array containing:
    """
    ["akismet", "hello-dolly"]
    """

Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.