Skip to content

Commit 65bbb94

Browse files
committed
features: Check that site transient for akismet is removed on uninstall
1 parent ec280cb commit 65bbb94

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

features/plugin-uninstall.feature

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feature: Uninstall a WordPress plugin
33
Background:
44
Given a WP install
55

6-
Scenario: Uninstall an installed plugin
6+
Scenario: Uninstall an installed plugin should uninstall, delete files
77
When I run `wp plugin uninstall akismet`
88
Then STDOUT should be:
99
"""
@@ -14,7 +14,6 @@ Feature: Uninstall a WordPress plugin
1414
And STDERR should be empty
1515
And the wp-content/plugins/akismet directory should not exist
1616

17-
1817
Scenario: Uninstall an installed plugin but do not delete its files
1918
When I run `wp plugin uninstall akismet --skip-delete`
2019
Then STDOUT should be:
@@ -38,7 +37,7 @@ Feature: Uninstall a WordPress plugin
3837
And the wp-content/plugins/hello.php file should not exist
3938

4039
Scenario: Missing required inputs
41-
When I run `wp plugin uninstall`
40+
When I try `wp plugin uninstall`
4241
Then STDERR should be:
4342
"""
4443
Error: Please specify one or more plugins, or use --all.
@@ -145,7 +144,7 @@ Feature: Uninstall a WordPress plugin
145144
And the return code should be 0
146145

147146
@require-wp-5.2
148-
Scenario: Uninstalling a plugin should remove its language pack too
147+
Scenario: Uninstalling a plugin should remove its language pack
149148
Given a WP install
150149
And I run `wp plugin install wordpress-importer`
151150
And I run `wp core language install fr_FR`

0 commit comments

Comments
 (0)