Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions features/plugin-activate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions features/plugin-deactivate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions features/plugin-delete.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions features/plugin-install.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand All @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions features/plugin-toggle.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
"""
Expand Down
4 changes: 2 additions & 2 deletions features/plugin-uninstall.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down