mirror of
https://ghproxy.net/https://github.com/wp-cli/extension-command.git
synced 2025-10-04 01:34:31 +08:00
Replace edit-flow plugin by debug-bar in feature tests
This commit is contained in:
parent
f9bc3fd2f2
commit
dc0d81da6c
6 changed files with 19 additions and 19 deletions
|
@ -13,18 +13,18 @@ Feature: Activate WordPress plugins
|
|||
And the return code should be 0
|
||||
|
||||
Scenario: Attempt to activate a plugin that's not installed
|
||||
When I try `wp plugin activate edit-flow`
|
||||
When I try `wp plugin activate debug-bar`
|
||||
Then STDERR should be:
|
||||
"""
|
||||
Warning: The 'edit-flow' plugin could not be found.
|
||||
Warning: The 'debug-bar' plugin could not be found.
|
||||
Error: No plugins activated.
|
||||
"""
|
||||
And the return code should be 1
|
||||
|
||||
When I try `wp plugin activate akismet hello edit-flow`
|
||||
When I try `wp plugin activate akismet hello debug-bar`
|
||||
Then STDERR should be:
|
||||
"""
|
||||
Warning: The 'edit-flow' plugin could not be found.
|
||||
Warning: The 'debug-bar' plugin could not be found.
|
||||
Error: Only activated 2 of 3 plugins.
|
||||
"""
|
||||
And STDOUT should be:
|
||||
|
|
|
@ -14,19 +14,19 @@ Feature: Deactivate WordPress plugins
|
|||
And the return code should be 0
|
||||
|
||||
Scenario: Attempt to deactivate a plugin that's not installed
|
||||
When I try `wp plugin deactivate edit-flow`
|
||||
When I try `wp plugin deactivate debug-bar`
|
||||
Then STDERR should be:
|
||||
"""
|
||||
Warning: The 'edit-flow' plugin could not be found.
|
||||
Warning: The 'debug-bar' plugin could not be found.
|
||||
Error: No plugins deactivated.
|
||||
"""
|
||||
And STDOUT should be empty
|
||||
And the return code should be 1
|
||||
|
||||
When I try `wp plugin deactivate akismet hello edit-flow`
|
||||
When I try `wp plugin deactivate akismet hello debug-bar`
|
||||
Then STDERR should be:
|
||||
"""
|
||||
Warning: The 'edit-flow' plugin could not be found.
|
||||
Warning: The 'debug-bar' plugin could not be found.
|
||||
Error: Only deactivated 2 of 3 plugins.
|
||||
"""
|
||||
And STDOUT should be:
|
||||
|
|
|
@ -29,14 +29,14 @@ Feature: Delete WordPress plugins
|
|||
"""
|
||||
|
||||
Scenario: Attempting to delete a plugin that doesn't exist
|
||||
When I try `wp plugin delete edit-flow`
|
||||
When I try `wp plugin delete debug-bar`
|
||||
Then STDOUT should be:
|
||||
"""
|
||||
Success: Plugin already deleted.
|
||||
"""
|
||||
And STDERR should be:
|
||||
"""
|
||||
Warning: The 'edit-flow' plugin could not be found.
|
||||
Warning: The 'debug-bar' plugin could not be found.
|
||||
"""
|
||||
And the return code should be 0
|
||||
|
||||
|
|
|
@ -92,10 +92,10 @@ Feature: Install WordPress plugins
|
|||
define( 'WP_PROXY_PORT', '443' );
|
||||
"""
|
||||
|
||||
When I try `wp --require=invalid-proxy-details.php plugin install edit-flow`
|
||||
When I try `wp --require=invalid-proxy-details.php plugin install debug-bar`
|
||||
Then STDERR should contain:
|
||||
"""
|
||||
Warning: edit-flow: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration.
|
||||
Warning: debug-bar: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration.
|
||||
"""
|
||||
And STDERR should contain:
|
||||
"""
|
||||
|
@ -104,7 +104,7 @@ Feature: Install WordPress plugins
|
|||
And STDOUT should be empty
|
||||
And the return code should be 1
|
||||
|
||||
When I run `wp plugin install edit-flow`
|
||||
When I run `wp plugin install debug-bar`
|
||||
Then STDOUT should contain:
|
||||
"""
|
||||
Plugin installed successfully.
|
||||
|
|
|
@ -19,10 +19,10 @@ Feature: Toggle the activation status of a plugin
|
|||
"""
|
||||
|
||||
Scenario: Toggling the status of a plugin that doesn't exist
|
||||
When I try `wp plugin toggle akismet edit-flow`
|
||||
When I try `wp plugin toggle akismet debug-bar`
|
||||
Then STDERR should be:
|
||||
"""
|
||||
Warning: The 'edit-flow' plugin could not be found.
|
||||
Warning: The 'debug-bar' plugin could not be found.
|
||||
Error: Only toggled 1 of 2 plugins.
|
||||
"""
|
||||
And STDOUT should be:
|
||||
|
@ -31,10 +31,10 @@ Feature: Toggle the activation status of a plugin
|
|||
"""
|
||||
And the return code should be 1
|
||||
|
||||
When I try `wp plugin toggle edit-flow co-authors-plus`
|
||||
When I try `wp plugin toggle debug-bar co-authors-plus`
|
||||
Then STDERR should be:
|
||||
"""
|
||||
Warning: The 'edit-flow' plugin could not be found.
|
||||
Warning: The 'debug-bar' plugin could not be found.
|
||||
Warning: The 'co-authors-plus' plugin could not be found.
|
||||
Error: No plugins toggled.
|
||||
"""
|
||||
|
|
|
@ -26,10 +26,10 @@ Feature: Uninstall a WordPress plugin
|
|||
And the return code should be 1
|
||||
|
||||
Scenario: Attempting to uninstall a plugin that doesn't exist
|
||||
When I try `wp plugin uninstall edit-flow`
|
||||
When I try `wp plugin uninstall debug-bar`
|
||||
Then STDERR should be:
|
||||
"""
|
||||
Warning: The 'edit-flow' plugin could not be found.
|
||||
Warning: The 'debug-bar' plugin could not be found.
|
||||
Error: No plugins uninstalled.
|
||||
"""
|
||||
And the return code should be 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue