Replace edit-flow plugin by debug-bar in feature tests

This commit is contained in:
Nilambar Sharma 2024-06-04 17:14:19 +05:45
parent f9bc3fd2f2
commit dc0d81da6c
6 changed files with 19 additions and 19 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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


View file

@ -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.

View file

@ -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.
"""

View file

@ -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