Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add test verifying the transient update
  • Loading branch information
swissspidy committed Dec 11, 2024
commit 251fdfe9164c836c8bbda8b87bb3a7f59b029a6d
23 changes: 23 additions & 0 deletions features/plugin-uninstall.feature
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,26 @@ Feature: Uninstall a WordPress plugin
And the wp-content/languages/plugins/wordpress-importer-fr_FR.po file should not exist
And the wp-content/languages/plugins/wordpress-importer-fr_FR.l10n.php file should not exist
And STDERR should be empty

Scenario: Uninstalling a plugin should remove its update info
Given a WP install
And I run `wp plugin install wordpress-importer --version=0.6`
And I run `wp plugin status wordpress-importer`

And I run `wp transient get --network update_plugins`
Then STDOUT should contain:
"""
wordpress-importer
"""

When I run `wp plugin uninstall wordpress-importer`
Then STDOUT should contain:
"""
Success:
"""

When I run `wp transient get --network update_plugins`
Then STDOUT should not contain:
"""
wordpress-importer
"""
Loading