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: menu-item.feature
Close
Feature: Manage WordPress menu items Background: Given a WP install Scenario: Add / update / remove items from a menu When I run `wp post create --post_title='Test post' --porcelain` Then STDOUT should be a number And save STDOUT as {POST_ID} When I run `wp post url {POST_ID}` Then save STDOUT as {POST_LINK} When I run `wp term create post_tag 'Test term' --slug=test --description='This is a test term' --porcelain` Then STDOUT should be a number And save STDOUT as {TERM_ID} When I run `wp term url post_tag {TERM_ID}` Then save STDOUT as {TERM_LINK} When I run `wp menu create "Sidebar Menu"` Then STDOUT should not be empty When I run `wp menu item add-post sidebar-menu {POST_ID} --title="Custom Test Post" --description="Georgia peaches" --porcelain` Then save STDOUT as {POST_ITEM_ID} When I run `wp menu item update {POST_ITEM_ID} --description="Washington Apples"` Then STDOUT should be: """ Success: Menu item updated. """ When I run `wp menu item add-term sidebar-menu post_tag {TERM_ID} --porcelain` Then save STDOUT as {TERM_ITEM_ID} When I run `wp menu item add-custom sidebar-menu Apple https://apple.com --parent-id={POST_ITEM_ID} --porcelain` Then save STDOUT as {CUSTOM_ITEM_ID} When I run `wp menu item update {CUSTOM_ITEM_ID} --title=WordPress --link='https://wordpress.org' --target=_blank --position=2` Then STDOUT should be: """ Success: Menu item updated. """ When I run `wp menu item update {TERM_ITEM_ID} --position=3` Then STDOUT should be: """ Success: Menu item updated. """ When I run `wp menu item list sidebar-menu --fields=type,title,description,position,link,menu_item_parent` Then STDOUT should be a table containing rows: | type | title | description | position | link | menu_item_parent | | post_type | Custom Test Post | Washington Apples | 1 | {POST_LINK} | 0 | | custom | WordPress | | 2 | https://wordpress.org | {POST_ITEM_ID} | | taxonomy | Test term | | 3 | {TERM_LINK} | 0 | When I run `wp menu item list sidebar-menu --format=ids` Then STDOUT should not be empty When I run `wp menu item delete {CUSTOM_ITEM_ID}` Then STDOUT should be: """ Success: Deleted 1 of 1 menu items. """ And I run `wp menu item list sidebar-menu --format=count` And STDOUT should be: """ 2 """ When I run `wp menu item delete {POST_ITEM_ID} {TERM_ITEM_ID}` Then STDOUT should be: """ Success: Deleted 2 of 2 menu items. """ And I run `wp menu item list sidebar-menu --format=count` And STDOUT should be: """ 0 """ Scenario: Preserve grandparent item as ancestor of child item when parent item is removed. When I run `wp menu create "Grandparent Test"` Then STDOUT should not be empty When I run `wp menu item add-custom grandparent-test Grandparent https://example.com/grandparent --porcelain` Then save STDOUT as {GRANDPARENT_ID} When I run `wp menu item add-custom grandparent-test Parent https://example.com/parent --porcelain --parent-id={GRANDPARENT_ID}` Then save STDOUT as {PARENT_ID} When I run `wp menu item add-custom grandparent-test Child https://example.com/child --porcelain --parent-id={PARENT_ID}` Then save STDOUT as {CHILD_ID} When I run `wp menu item list grandparent-test --fields=title,db_id,menu_item_parent` Then STDOUT should be a table containing rows: | title | db_id | menu_item_parent | | Grandparent | {GRANDPARENT_ID} | 0 | | Parent | {PARENT_ID} | {GRANDPARENT_ID} | | Child | {CHILD_ID} | {PARENT_ID} | When I run `wp menu item delete {PARENT_ID}` And I run `wp menu item list grandparent-test --fields=title,db_id,menu_item_parent` Then STDOUT should be a table containing rows: | title | db_id | menu_item_parent | | Grandparent | {GRANDPARENT_ID} | 0 | | Child | {CHILD_ID} | {GRANDPARENT_ID} | Scenario: Error deleting one or more menu items When I run `wp menu create "Sidebar Menu"` Then STDOUT should not be empty When I try `wp menu item delete 99999999` Then STDERR should be: """ Warning: Couldn't delete menu item 99999999. Error: No menu items deleted. """ And the return code should be 1 When I run `wp menu item add-custom sidebar-menu Apple https://apple.com --porcelain` Then save STDOUT as {CUSTOM_ITEM_ID} When I try `wp menu item delete {CUSTOM_ITEM_ID} 99999999` Then STDERR should be: """ Warning: Couldn't delete menu item 99999999. Error: Only deleted 1 of 2 menu items. """ And the return code should be 1 Scenario: Menu order is recalculated on insertion When I run `wp menu create "Sidebar Menu"` Then STDOUT should not be empty When I run `wp menu item add-custom sidebar-menu First https://first.com --porcelain` Then save STDOUT as {ITEM_ID_1} When I run `wp menu item add-custom sidebar-menu Second https://second.com --porcelain` Then save STDOUT as {ITEM_ID_2} When I run `wp menu item add-custom sidebar-menu Third https://third.com --porcelain` Then save STDOUT as {ITEM_ID_3} When I run `wp menu item list sidebar-menu --fields=type,title,position,link` Then STDOUT should be a table containing rows: | type | title | position | link | | custom | First | 1 | https://first.com | | custom | Second | 2 | https://second.com | | custom | Third | 3 | https://third.com | When I run `wp menu item add-custom sidebar-menu Fourth https://fourth.com --position=2 --porcelain` Then save STDOUT as {ITEM_ID_4} When I run `wp menu item list sidebar-menu --fields=type,title,position,link` Then STDOUT should be a table containing rows: | type | title | position | link | | custom | First | 1 | https://first.com | | custom | Fourth | 2 | https://fourth.com | | custom | Second | 3 | https://second.com | | custom | Third | 4 | https://third.com | Scenario: Menu order is recalculated on deletion When I run `wp menu create "Sidebar Menu"` Then STDOUT should not be empty When I run `wp menu item add-custom sidebar-menu First https://first.com --porcelain` Then save STDOUT as {ITEM_ID_1} When I run `wp menu item add-custom sidebar-menu Second https://second.com --porcelain` Then save STDOUT as {ITEM_ID_2} When I run `wp menu item add-custom sidebar-menu Third https://third.com --porcelain` Then save STDOUT as {ITEM_ID_3} When I run `wp menu item list sidebar-menu --fields=type,title,position,link` Then STDOUT should be a table containing rows: | type | title | position | link | | custom | First | 1 | https://first.com | | custom | Second | 2 | https://second.com | | custom | Third | 3 | https://third.com | When I run `wp menu item delete {ITEM_ID_2}` Then STDOUT should be: """ Success: Deleted 1 of 1 menu items. """ When I run `wp menu item list sidebar-menu --fields=type,title,position,link` Then STDOUT should be a table containing rows: | type | title | position | link | | custom | First | 1 | https://first.com | | custom | Third | 2 | https://third.com |