Skip to content

Commit 251fdfe

Browse files
committed
Add test verifying the transient update
1 parent 78a2d02 commit 251fdfe

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

features/plugin-uninstall.feature

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,26 @@ Feature: Uninstall a WordPress plugin
168168
And the wp-content/languages/plugins/wordpress-importer-fr_FR.po file should not exist
169169
And the wp-content/languages/plugins/wordpress-importer-fr_FR.l10n.php file should not exist
170170
And STDERR should be empty
171+
172+
Scenario: Uninstalling a plugin should remove its update info
173+
Given a WP install
174+
And I run `wp plugin install wordpress-importer --version=0.6`
175+
And I run `wp plugin status wordpress-importer`
176+
177+
And I run `wp transient get --network update_plugins`
178+
Then STDOUT should contain:
179+
"""
180+
wordpress-importer
181+
"""
182+
183+
When I run `wp plugin uninstall wordpress-importer`
184+
Then STDOUT should contain:
185+
"""
186+
Success:
187+
"""
188+
189+
When I run `wp transient get --network update_plugins`
190+
Then STDOUT should not contain:
191+
"""
192+
wordpress-importer
193+
"""

0 commit comments

Comments
 (0)