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: upgradables.feature
Close
Feature: Manage WordPress themes and plugins Background: Given an empty cache @require-wp-4.5 Scenario Outline: Installing, upgrading and deleting a theme or plugin Given a WP install # Akismet ships with WordPress but does not work with older versions we test And I run `wp plugin delete akismet` And I run `wp <type> path` And save STDOUT as {CONTENT_DIR} When I try `wp <type> is-installed <item>` Then the return code should be 1 And STDERR should be empty And STDOUT should be empty When I try `wp <type> is-active <item>` Then the return code should be 1 And STDERR should be empty And STDOUT should be empty When I try `wp <type> get <item>` Then the return code should be 1 And STDERR should not be empty And STDOUT should be empty # Install an out of date <item> from WordPress.org repository When I run `wp <type> install <item> --version=<version>` Then STDOUT should contain: """ <type_name> installed successfully """ And the {SUITE_CACHE_DIR}/<type>/<item>-<version>.zip file should exist When I run `wp <type> is-installed <item>` Then the return code should be 0 When I run `wp <type> get <item>` Then STDOUT should be a table containing rows: | Field | Value | | title | <item_title> | When I run `wp <type> get <item> --field=title` Then STDOUT should contain: """ <item_title> """ When I run `wp <type> get <item> --field=title --format=json` Then STDOUT should contain: """ "<item_title>" """ When I run `wp <type> list --name=<item> --field=update_version` Then STDOUT should not be empty And save STDOUT as {UPDATE_VERSION} When I run `wp <type> list` Then STDOUT should be a table containing rows: | name | status | update | version | update_version | auto_update | | <item> | inactive | available | <version> | {UPDATE_VERSION} | off | When I run `wp <type> list --field=name` Then STDOUT should contain: """ <item> """ When I run `wp <type> list --field=name --format=json` Then STDOUT should be a JSON array containing: """ ["<item>"] """ When I run `wp <type> status` Then STDOUT should contain: """ U = Update Available """ When I run `wp <type> status <item>` Then STDOUT should contain: """ Status: Inactive Version: <version> (Update available) """ When I run `wp <type> update <item>` And save STDOUT 'Downloading update from .*\/<item>\.%s\.zip' as {NEW_VERSION} And STDOUT should not be empty Then STDOUT should not contain: """ Error """ And the {SUITE_CACHE_DIR}/<type>/<item>-{NEW_VERSION}.zip file should exist # This can throw warnings about versions being higher than expected. When I try `wp <type> update --all 2>&1` Then STDOUT should contain: """ updated """ When I run `wp <type> status <item>` Then STDOUT should not contain: """ (Update available) """ When I run `wp <type> delete <item>` Then STDOUT should contain: """ Deleted '<item>' <type>. """ When I try `wp <type> status <item>` Then the return code should be 1 And STDERR should not be empty And STDOUT should be empty # Install and update <item> from cache When I run `wp <type> install <item> --version=<version>` Then STDOUT should contain: """ Using cached file '{SUITE_CACHE_DIR}/<type>/<item>-<version>.zip'... """ When I run `wp <type> update <item>` Then STDOUT should contain: """ Using cached file '{SUITE_CACHE_DIR}/<type>/<item>-{NEW_VERSION}.zip'... """ When I run `wp <type> delete <item>` Then STDOUT should contain: """ Deleted '<item>' <type>. """ And the <file_to_check> file should not exist # Install <item> from a local zip file When I run `wp <type> install {SUITE_CACHE_DIR}/<type>/<item>-<version>.zip` Then STDOUT should contain: """ <type_name> installed successfully. """ And the <file_to_check> file should exist When I run `wp <type> delete <item>` Then STDOUT should contain: """ Deleted '<item>' <type>. """ And the <file_to_check> file should not exist # Install <item> from a remote zip file (standard URL with no GET parameters) When I run `wp <type> install <zip_file>` Then STDOUT should contain: """ <type_name> installed successfully. """ And the <file_to_check> file should exist When I run `wp <type> delete <item>` Then STDOUT should contain: """ Deleted '<item>' <type>. """ And the <file_to_check> file should not exist # Install <item> from a remote zip file (complex URL with GET parameters) When I run `wp <type> install '<zip_file>?AWSAccessKeyId=123&Expires=456&Signature=abcdef'` Then STDOUT should contain: """ <type_name> installed successfully. """ And the <file_to_check> file should exist When I run `wp <type> delete <item>` Then STDOUT should contain: """ Deleted '<item>' <type>. """ And the <file_to_check> file should not exist When I run `wp <type> list --fields=name` Then STDOUT should not contain: """ <item> """ When I try `wp <type> install an-impossible-slug-because-abc3fr` Then STDERR should contain: """ Warning: """ And STDERR should contain: """ an-impossible-slug-because-abc3fr """ And STDERR should contain: """ Error: No <type>s installed. """ And STDOUT should be empty And the return code should be 1 Examples: | type | type_name | item | item_title | version | zip_file | file_to_check | | theme | Theme | moina | Moina | 1.1.2 | https://wordpress.org/themes/download/moina.1.1.2.zip | {CONTENT_DIR}/moina/style.css | | plugin | Plugin | category-checklist-tree | Category Checklist Tree | 1.2 | https://downloads.wordpress.org/plugin/category-checklist-tree.1.2.zip | {CONTENT_DIR}/category-checklist-tree/category-checklist-tree.php | @require-wp-4.5 Scenario Outline: Caches certain GitHub URLs Given a WP install And I run `wp plugin delete --all` When I run `wp plugin install <zip_file>` Then STDOUT should contain: """ Plugin installed successfully """ And STDOUT should not contain: """ Using cached file '{SUITE_CACHE_DIR}/plugin/<item>-<version> """ When I run `wp plugin delete --all` And I run `wp plugin install <zip_file>` Then STDOUT should contain: """ Plugin installed successfully """ And STDOUT should contain: """ Using cached file '{SUITE_CACHE_DIR}/plugin/<item>-<version> """ Examples: | item | version | zip_file | | one-time-login | 0.4.0 | https://github.com/danielbachhuber/one-time-login/releases/latest | | preferred-languages | 1.8.0 | https://github.com/swissspidy/preferred-languages/releases/download/1.8.0/preferred-languages.zip | | generic-example-plugin | 0.1.1 | https://github.com/wp-cli-test/generic-example-plugin/archive/v0.1.1.zip |