OXIESEC PANEL
- Current Dir:
/
/
opt
/
.wp-cli
/
packages
/
vendor
/
wp-cli
/
entity-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
📄
comment-generate.feature
905 bytes
03/20/2024 11:17:27 AM
rw-r--r--
📄
comment-list.feature
1.04 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
comment-meta.feature
2.33 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
comment-recount.feature
877 bytes
05/14/2024 01:45:25 PM
rw-r--r--
📄
comment.feature
13.17 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
menu-item.feature
7.68 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
menu-location.feature
1.88 KB
05/14/2024 01:45:25 PM
rw-r--r--
📄
menu.feature
2.05 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
network-meta.feature
418 bytes
03/20/2024 11:17:27 AM
rw-r--r--
📄
option-get-autoload.feature
826 bytes
05/14/2024 01:45:25 PM
rw-r--r--
📄
option-list.feature
5.89 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
option-pluck-patch.feature
7.73 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
option-set-autoload.feature
1.96 KB
05/14/2024 01:45:25 PM
rw-r--r--
📄
option.feature
8.17 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
post-create-duplicate.feature
2.79 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
post-generate.feature
5.71 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
post-meta-clean-duplicates.feature
1.67 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
post-meta.feature
14.7 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
post-term.feature
5.37 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
post-type.feature
1.46 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
post-url-to-id.feature
564 bytes
05/14/2024 01:45:25 PM
rw-r--r--
📄
post.feature
16.49 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
signup.feature
5.52 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
site-create.feature
3.36 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
site-empty.feature
4.2 KB
05/14/2024 01:45:25 PM
rw-r--r--
📄
site-generate.feature
3.38 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
site-meta.feature
864 bytes
03/20/2024 11:17:27 AM
rw-r--r--
📄
site-option-pluck-patch.feature
6.83 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
site-option.feature
3.64 KB
05/14/2024 01:45:25 PM
rw-r--r--
📄
site.feature
20.81 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
taxonomy.feature
5.6 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
term-generate.feature
810 bytes
03/20/2024 11:17:27 AM
rw-r--r--
📄
term-meta.feature
849 bytes
03/20/2024 11:17:27 AM
rw-r--r--
📄
term-migrate.feature
2.97 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
term-recount.feature
1.6 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
term.feature
8 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
user-application-password.feature
10.26 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
user-generate.feature
1.05 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
user-import-csv.feature
5.32 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
user-list.feature
1.09 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
user-meta.feature
7.31 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
user-reset-password.feature
2.12 KB
03/20/2024 11:17:27 AM
rw-r--r--
📄
user-session.feature
944 bytes
09/06/2025 12:29:47 PM
rw-r--r--
📄
user-term.feature
2.82 KB
09/06/2025 12:29:47 PM
rw-r--r--
📄
user.feature
20.52 KB
09/06/2025 12:29:47 PM
rw-r--r--
Editing: site-empty.feature
Close
Feature: Empty a WordPress site of its data @require-mysql Scenario: Empty a site Given a WP installation And I run `wp option update uploads_use_yearmonth_folders 0` And download: | path | url | | {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg | And a insert_link_data.sql file: """ INSERT INTO `wp_links` (`link_url`, `link_name`, `link_image`, `link_target`, `link_description`, `link_visible`, `link_owner`, `link_rating`, `link_rel`, `link_notes`, `link_rss`) VALUES ('http://wordpress.org/', 'test', '', '', 'test', 'Y', 1, 0, '', '', '') """ When I run `wp db query "SOURCE insert_link_data.sql;"` Then STDERR should be empty When I run `wp db query "SELECT COUNT(link_id) FROM wp_links;"` Then STDOUT should be: """ COUNT(link_id) 1 """ When I run `wp media import {CACHE_DIR}/large-image.jpg --post_id=1` Then the wp-content/uploads/large-image.jpg file should exist When I try `wp site url 1` Then STDERR should be: """ Error: This is not a multisite installation. """ And the return code should be 1 When I run `wp post create --post_title='Test post' --post_content='Test content.'` Then STDOUT should contain: """ Success: Created post """ When I run `wp term create post_tag 'Test term' --slug=test --description='This is a test term'` Then STDOUT should be: """ Success: Created post_tag 2. """ When I run `wp post create --post_type=page --post_title='Sample Privacy Page' --post_content='Sample Privacy Terms' --porcelain` Then save STDOUT as {PAGE_ID} When I run `wp option set wp_page_for_privacy_policy {PAGE_ID}` Then STDOUT should be: """ Success: Updated 'wp_page_for_privacy_policy' option. """ When I run `wp option get wp_page_for_privacy_policy` Then STDOUT should be: """ {PAGE_ID} """ When I run `wp post create --post_title='Sticky Post' --post_content='This is just a sticky post' --porcelain` Then save STDOUT as {STICKY_POST_ID} When I run `wp option set sticky_posts '[{STICKY_POST_ID}]' --format=json` Then STDOUT should be: """ Success: Updated 'sticky_posts' option. """ When I run `wp site empty --yes` Then STDOUT should be: """ Success: The site at 'https://example.com' was emptied. """ And the wp-content/uploads/large-image.jpg file should exist When I run `wp post list --format=ids` Then STDOUT should be empty When I run `wp term list post_tag --format=ids` Then STDOUT should be empty When I run `wp option get wp_page_for_privacy_policy` Then STDOUT should be: """ 0 """ When I run `wp option get sticky_posts --format=json` Then STDOUT should be: """ [] """ When I run `wp db query "SELECT COUNT(link_id) FROM wp_links;"` Then STDOUT should be: """ COUNT(link_id) 0 """ Scenario: Empty a site and its uploads directory Given a WP multisite installation And I run `wp site create --slug=foo` And I run `wp --url=example.com/foo option update uploads_use_yearmonth_folders 0` And download: | path | url | | {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg | When I run `wp --url=example.com/foo media import {CACHE_DIR}/large-image.jpg --post_id=1` Then the wp-content/uploads/sites/2/large-image.jpg file should exist When I run `wp site empty --uploads --yes` Then STDOUT should not be empty And the wp-content/uploads/sites/2/large-image.jpg file should exist When I run `wp post list --format=ids` Then STDOUT should be empty When I run `wp --url=example.com/foo site empty --uploads --yes` Then STDOUT should contain: """ ://example.com/foo' was emptied. """ And the wp-content/uploads/sites/2/large-image.jpg file should not exist When I run `wp --url=example.com/foo post list --format=ids` Then STDOUT should be empty