mirror of
https://gh.wpcy.net/https://github.com/wp-cli/extension-command.git
synced 2026-04-26 02:15:07 +08:00
20 lines
518 B
Gherkin
20 lines
518 B
Gherkin
Feature: Search WordPress.org plugins
|
|
|
|
Scenario: Search for plugins with active_installs field
|
|
Given a WP install
|
|
|
|
When I run `wp plugin search foo --fields=name,slug,active_installs`
|
|
Then STDOUT should contain:
|
|
"""
|
|
Success: Showing
|
|
"""
|
|
|
|
When I run `wp plugin search foo --fields=name,slug,active_installs --format=csv`
|
|
Then STDOUT should not contain:
|
|
"""
|
|
Success: Showing
|
|
"""
|
|
And STDOUT should contain:
|
|
"""
|
|
name,slug,active_installs
|
|
"""
|