OXIESEC PANEL
- Current Dir:
/
/
opt
/
.wp-cli
/
packages
/
vendor
/
wp-cli
/
extension-command
/
features
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/06/2025 12:29:47 PM
rwxr-xr-x
📄
extension-install.feature
614 bytes
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-activate.feature
4.56 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-auto-updates-disable.feature
2.92 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-auto-updates-enable.feature
2.86 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-auto-updates-status.feature
4.05 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-deactivate.feature
3.21 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-delete.feature
2.2 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-get.feature
2.03 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-install-github-latest.feature
627 bytes
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-install.feature
8.85 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-list-recently-active.feature
4.13 KB
05/14/2024 01:45:25 PM
rw-r--r--
📄
plugin-list-wporg-status.feature
1.75 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-search.feature
518 bytes
03/20/2024 11:17:26 AM
rw-r--r--
📄
plugin-status.feature
401 bytes
03/20/2024 11:17:26 AM
rw-r--r--
📄
plugin-toggle.feature
1.14 KB
02/24/2025 12:05:14 PM
rw-r--r--
📄
plugin-uninstall.feature
6.03 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin-update.feature
7.69 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
plugin.feature
28.4 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
theme-auto-update-status.feature
4.02 KB
03/20/2024 11:17:26 AM
rw-r--r--
📄
theme-auto-updates-disable.feature
2.82 KB
03/20/2024 11:17:26 AM
rw-r--r--
📄
theme-auto-updates-enable.feature
2.8 KB
03/20/2024 11:17:26 AM
rw-r--r--
📄
theme-delete.feature
3.03 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
theme-install.feature
3.89 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
theme-mod-list.feature
1.07 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
theme-mod.feature
1.91 KB
03/20/2024 11:17:26 AM
rw-r--r--
📄
theme-update.feature
4.35 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
theme.feature
21.32 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
upgradables.feature
7.69 KB
09/06/2025 12:29:47 PM
rw-r--r--
Editing: plugin-uninstall.feature
Close
Feature: Uninstall a WordPress plugin Background: Given a WP install Scenario: Uninstall an installed plugin should uninstall, delete files When I run `wp plugin uninstall akismet` Then STDOUT should be: """ Uninstalled and deleted 'akismet' plugin. Success: Uninstalled 1 of 1 plugins. """ And the return code should be 0 And STDERR should be empty And the wp-content/plugins/akismet directory should not exist Scenario: Uninstall an installed plugin but do not delete its files When I run `wp plugin uninstall akismet --skip-delete` Then STDOUT should be: """ Ran uninstall procedure for 'akismet' plugin without deleting. Success: Uninstalled 1 of 1 plugins. """ And the return code should be 0 And STDERR should be empty And the wp-content/plugins/akismet directory should exist Scenario: Uninstall a plugin that is not in a folder and has custom name When I run `wp plugin uninstall hello` Then STDOUT should be: """ Uninstalled and deleted 'hello' plugin. Success: Uninstalled 1 of 1 plugins. """ And the return code should be 0 And STDERR should be empty And the wp-content/plugins/hello.php file should not exist Scenario: Missing required inputs When I try `wp plugin uninstall` Then STDERR should be: """ Error: Please specify one or more plugins, or use --all. """ And the return code should be 1 And STDOUT should be empty Scenario: Attempting to uninstall a plugin that's activated When I run `wp plugin activate akismet` Then STDOUT should not be empty When I try `wp plugin uninstall akismet` Then STDERR should be: """ Warning: The 'akismet' plugin is active. Error: No plugins uninstalled. """ And STDOUT should be empty And the return code should be 1 Scenario: Attempting to uninstall a plugin that's activated (using --deactivate) When I run `wp plugin activate akismet` Then STDOUT should not be empty When I try `wp plugin uninstall akismet --deactivate` Then STDOUT should be: """ Deactivating 'akismet'... Plugin 'akismet' deactivated. Uninstalled and deleted 'akismet' plugin. Success: Uninstalled 1 of 1 plugins. """ And STDERR should be empty And the return code should be 0 Scenario: Attempting to uninstall a plugin that doesn't exist When I try `wp plugin uninstall debug-bar` Then STDERR should be: """ Warning: The 'debug-bar' plugin could not be found. Error: No plugins uninstalled. """ And the return code should be 1 Scenario: Uninstall all installed plugins When I run `wp plugin uninstall --all` Then STDOUT should be: """ Uninstalled and deleted 'akismet' plugin. Uninstalled and deleted 'hello' plugin. Success: Uninstalled 2 of 2 plugins. """ And the return code should be 0 And STDERR should be empty When I run the previous command again Then STDOUT should be: """ Success: No plugins uninstalled. """ And STDERR should be empty Scenario: Uninstall all installed plugins when one or more activated When I run `wp plugin activate --all` Then STDOUT should contain: """ Success: Activated 2 of 2 plugins. """ When I try `wp plugin uninstall --all` Then STDERR should be: """ Warning: The 'akismet' plugin is active. Warning: The 'hello' plugin is active. Error: No plugins uninstalled. """ And the return code should be 1 And STDOUT should be empty When I run `wp plugin uninstall --deactivate --all` Then STDOUT should contain: """ Success: Uninstalled 2 of 2 plugins. """ And STDERR should be empty Scenario: Excluding a plugin from uninstallation when using --all switch When I try `wp plugin uninstall --all --exclude=akismet,hello` Then STDOUT should be: """ Success: No plugins uninstalled. """ And the return code should be 0 And STDERR should be empty Scenario: Excluding a missing plugin should not throw an error Given a WP install And I run `wp plugin uninstall --all --exclude=missing-plugin` Then STDERR should be empty And STDOUT should contain: """ Success: """ And the return code should be 0 @require-wp-5.2 Scenario: Uninstalling a plugin should remove its language pack Given a WP install And I run `wp plugin install wordpress-importer` And I run `wp core language install fr_FR` And I run `wp site switch-language fr_FR` When I run `wp language plugin install wordpress-importer fr_FR` Then STDOUT should contain: """ Success: """ And the wp-content/languages/plugins/wordpress-importer-fr_FR.mo file should exist And the wp-content/languages/plugins/wordpress-importer-fr_FR.po file should exist And the wp-content/languages/plugins/wordpress-importer-fr_FR.l10n.php file should exist When I run `wp plugin uninstall wordpress-importer` Then STDOUT should contain: """ Success: """ And the wp-content/languages/plugins/wordpress-importer-fr_FR.mo file should not exist 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 @require-wp-5.2 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 """