mirror of
https://gh.wpcy.net/https://github.com/wp-cli/extension-command.git
synced 2026-04-27 03:30:30 +08:00
21 lines
614 B
Gherkin
21 lines
614 B
Gherkin
Feature: Manage WordPress extension installation
|
|
|
|
@require-wp-5.1.1
|
|
Scenario: Installing Extensions theme or plugin
|
|
Given a WP install
|
|
|
|
When I try `wp theme install test-ext --activate`
|
|
Then STDERR should be:
|
|
"""
|
|
Warning: test-ext: Theme not found
|
|
Warning: The 'test-ext' theme could not be found.
|
|
Error: No themes installed.
|
|
"""
|
|
|
|
When I try `wp plugin install test-ext --activate`
|
|
Then STDERR should be:
|
|
"""
|
|
Warning: test-ext: Plugin not found.
|
|
Warning: The 'test-ext' plugin could not be found.
|
|
Error: No plugins installed.
|
|
"""
|