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-update.feature
Close
Feature: Update WordPress themes Scenario: Updating a theme with no version in the WordPress.org directory shouldn't delete the original theme Given a WP install When I run `wp scaffold underscores wpclitesttheme` Then STDOUT should contain: """ Success: Created theme """ And the wp-content/themes/wpclitesttheme directory should exist When I try `wp theme update wpclitesttheme --version=100.0.0` Then STDERR should contain: """ Error: No themes installed """ And the wp-content/themes/wpclitesttheme directory should exist Scenario: Install a theme, then update to a specific version of that theme Given a WP install And I run `wp theme delete --all --force` When I run `wp theme install twentytwelve --version=3.0` Then STDOUT should not be empty When I run `wp theme update twentytwelve --version=4.0` Then STDOUT should not be empty When I run `wp theme list --fields=name,version` Then STDOUT should be a table containing rows: | name | version | | twentytwelve | 4.0 | @require-wp-4.5 Scenario: Not giving a slug on update should throw an error unless --all given Given a WP install And I run `wp theme path` And save STDOUT as {THEME_DIR} And an empty {THEME_DIR} directory # No themes installed. Don't give an error if --all given for BC. When I run `wp theme update --all` Then STDOUT should be: """ Success: No themes installed. """ When I run `wp theme update --version=0.6 --all` Then STDOUT should be: """ Success: No themes installed. """ # One theme installed. Given I run `wp theme install moina --version=1.0.2` When I try `wp theme update` Then the return code should be 1 And STDERR should be: """ Error: Please specify one or more themes, or use --all. """ And STDOUT should be empty When I run `wp theme update --all` Then STDOUT should contain: """ Success: Updated """ When I run the previous command again Then STDOUT should be: """ Success: Theme already updated. """ # Note: if given version then re-installs. When I run `wp theme update --version=1.0.2 --all` Then STDOUT should contain: """ Success: Installed 1 of 1 themes. """ When I run the previous command again Then STDOUT should contain: """ Success: Installed 1 of 1 themes. """ # Two themes installed. Given I run `wp theme install --force twentytwelve --version=1.0` When I run `wp theme update --all` Then STDOUT should contain: """ Success: Updated """ When I run the previous command again # BUG: Message should be in plural. Then STDOUT should be: """ Success: Theme already updated. """ # Using version with all rarely makes sense and should probably error and do nothing. When I try `wp theme update --version=1.0.3 --all` Then the return code should be 1 And STDOUT should contain: """ Success: Installed 1 of 1 themes. """ And STDERR should be: """ Error: Can't find the requested theme's version 1.0.3 in the WordPress.org theme repository (HTTP code 404). """ Scenario: Error when both --minor and --patch are provided Given a WP install When I try `wp theme update --patch --minor --all` Then STDERR should be: """ Error: --minor and --patch cannot be used together. """ And the return code should be 1 Scenario: Update a theme to its latest minor release Given a WP install And I run `wp theme install --force twentytwelve --version=3.0` When I run `wp theme update twentytwelve --minor` Then STDOUT should contain: """ Success: Updated 1 of 1 themes. """ When I run `wp theme get twentytwelve --field=version` Then STDOUT should be: """ 3.9 """ Scenario: Update a theme to its latest patch release Given a WP install And I run `wp theme install --force twentytwelve --version=1.1` When I run `wp theme update twentytwelve --patch` Then STDOUT should contain: """ Success: Updated 1 of 1 themes. """ When I run `wp theme get twentytwelve --field=version` Then STDOUT should be: """ 1.1.1 """