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: theme-delete.feature
Close
Feature: Delete WordPress themes Background: Given a WP install And I run `wp theme delete --all --force` And I run `wp theme install twentytwelve` And I run `wp theme install twentyeleven --activate` Scenario: Delete an installed theme When I run `wp theme delete twentytwelve` Then STDOUT should be: """ Deleted 'twentytwelve' theme. Success: Deleted 1 of 1 themes. """ And the return code should be 0 Scenario: Delete an active theme When I run `wp theme activate twentytwelve` Then STDOUT should not be empty When I try `wp theme delete twentytwelve` Then STDERR should be: """ Warning: Can't delete the currently active theme: twentytwelve Error: No themes deleted. """ When I try `wp theme delete twentytwelve --force` Then STDOUT should contain: """ Deleted 'twentytwelve' theme. """ Scenario: Delete all installed themes When I run `wp theme list --status=active --field=name --porcelain` Then save STDOUT as {ACTIVE_THEME} When I try `wp theme delete --all` Then STDOUT should contain: """ Success: Deleted """ And STDERR should be empty When I run `wp theme delete --all --force` Then STDOUT should be: """ Deleted '{ACTIVE_THEME}' theme. Success: Deleted 1 of 1 themes. """ When I try the previous command again Then STDOUT should be: """ Success: No themes deleted. """ Scenario: Delete all installed themes when active theme has a parent Given a WP install And I run `wp theme install moina-blog --activate` When I run `wp theme list --field=name` Then STDOUT should contain: """ moina-blog moina """ When I try `wp theme delete moina-blog` Then STDERR should contain: """ Can't delete the currently active theme """ And STDERR should contain: """ Error: No themes deleted. """ When I try `wp theme delete moina` Then STDERR should contain: """ Can't delete the parent of the currently active theme """ And STDERR should contain: """ Error: No themes deleted. """ When I run `wp theme delete --all` Then STDOUT should contain: """ Success: Deleted """ When I run `wp theme list --field=name` Then STDOUT should contain: """ moina-blog moina """ When I run `wp theme delete --all --force` Then STDOUT should contain: """ Success: Deleted """ When I run `wp theme list --field=name` Then STDOUT should be empty Scenario: Attempting to delete a theme that doesn't exist When I run `wp theme delete twentytwelve` Then STDOUT should not be empty When I try the previous command again Then STDOUT should be: """ Success: Theme already deleted. """ And STDERR should be: """ Warning: The 'twentytwelve' theme could not be found. """ And the return code should be 0