Skip to content

Commit 7baa058

Browse files
authored
Merge pull request #427 from ernilambar/replace-plugin-in-tests
2 parents f9bc3fd + dc0d81d commit 7baa058

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

features/plugin-activate.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ Feature: Activate WordPress plugins
1313
And the return code should be 0
1414

1515
Scenario: Attempt to activate a plugin that's not installed
16-
When I try `wp plugin activate edit-flow`
16+
When I try `wp plugin activate debug-bar`
1717
Then STDERR should be:
1818
"""
19-
Warning: The 'edit-flow' plugin could not be found.
19+
Warning: The 'debug-bar' plugin could not be found.
2020
Error: No plugins activated.
2121
"""
2222
And the return code should be 1
2323

24-
When I try `wp plugin activate akismet hello edit-flow`
24+
When I try `wp plugin activate akismet hello debug-bar`
2525
Then STDERR should be:
2626
"""
27-
Warning: The 'edit-flow' plugin could not be found.
27+
Warning: The 'debug-bar' plugin could not be found.
2828
Error: Only activated 2 of 3 plugins.
2929
"""
3030
And STDOUT should be:

features/plugin-deactivate.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ Feature: Deactivate WordPress plugins
1414
And the return code should be 0
1515

1616
Scenario: Attempt to deactivate a plugin that's not installed
17-
When I try `wp plugin deactivate edit-flow`
17+
When I try `wp plugin deactivate debug-bar`
1818
Then STDERR should be:
1919
"""
20-
Warning: The 'edit-flow' plugin could not be found.
20+
Warning: The 'debug-bar' plugin could not be found.
2121
Error: No plugins deactivated.
2222
"""
2323
And STDOUT should be empty
2424
And the return code should be 1
2525

26-
When I try `wp plugin deactivate akismet hello edit-flow`
26+
When I try `wp plugin deactivate akismet hello debug-bar`
2727
Then STDERR should be:
2828
"""
29-
Warning: The 'edit-flow' plugin could not be found.
29+
Warning: The 'debug-bar' plugin could not be found.
3030
Error: Only deactivated 2 of 3 plugins.
3131
"""
3232
And STDOUT should be:

features/plugin-delete.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ Feature: Delete WordPress plugins
2929
"""
3030

3131
Scenario: Attempting to delete a plugin that doesn't exist
32-
When I try `wp plugin delete edit-flow`
32+
When I try `wp plugin delete debug-bar`
3333
Then STDOUT should be:
3434
"""
3535
Success: Plugin already deleted.
3636
"""
3737
And STDERR should be:
3838
"""
39-
Warning: The 'edit-flow' plugin could not be found.
39+
Warning: The 'debug-bar' plugin could not be found.
4040
"""
4141
And the return code should be 0
4242

features/plugin-install.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ Feature: Install WordPress plugins
9292
define( 'WP_PROXY_PORT', '443' );
9393
"""
9494

95-
When I try `wp --require=invalid-proxy-details.php plugin install edit-flow`
95+
When I try `wp --require=invalid-proxy-details.php plugin install debug-bar`
9696
Then STDERR should contain:
9797
"""
98-
Warning: edit-flow: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration.
98+
Warning: debug-bar: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration.
9999
"""
100100
And STDERR should contain:
101101
"""
@@ -104,7 +104,7 @@ Feature: Install WordPress plugins
104104
And STDOUT should be empty
105105
And the return code should be 1
106106

107-
When I run `wp plugin install edit-flow`
107+
When I run `wp plugin install debug-bar`
108108
Then STDOUT should contain:
109109
"""
110110
Plugin installed successfully.

features/plugin-toggle.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Feature: Toggle the activation status of a plugin
1919
"""
2020

2121
Scenario: Toggling the status of a plugin that doesn't exist
22-
When I try `wp plugin toggle akismet edit-flow`
22+
When I try `wp plugin toggle akismet debug-bar`
2323
Then STDERR should be:
2424
"""
25-
Warning: The 'edit-flow' plugin could not be found.
25+
Warning: The 'debug-bar' plugin could not be found.
2626
Error: Only toggled 1 of 2 plugins.
2727
"""
2828
And STDOUT should be:
@@ -31,10 +31,10 @@ Feature: Toggle the activation status of a plugin
3131
"""
3232
And the return code should be 1
3333

34-
When I try `wp plugin toggle edit-flow co-authors-plus`
34+
When I try `wp plugin toggle debug-bar co-authors-plus`
3535
Then STDERR should be:
3636
"""
37-
Warning: The 'edit-flow' plugin could not be found.
37+
Warning: The 'debug-bar' plugin could not be found.
3838
Warning: The 'co-authors-plus' plugin could not be found.
3939
Error: No plugins toggled.
4040
"""

features/plugin-uninstall.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Feature: Uninstall a WordPress plugin
2626
And the return code should be 1
2727

2828
Scenario: Attempting to uninstall a plugin that doesn't exist
29-
When I try `wp plugin uninstall edit-flow`
29+
When I try `wp plugin uninstall debug-bar`
3030
Then STDERR should be:
3131
"""
32-
Warning: The 'edit-flow' plugin could not be found.
32+
Warning: The 'debug-bar' plugin could not be found.
3333
Error: No plugins uninstalled.
3434
"""
3535
And the return code should be 1

0 commit comments

Comments
 (0)