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: post-term.feature
Close
Feature: Manage post term Scenario: Postterm CRUD Given a WP install When I run `wp post term add 1 category foo` Then STDOUT should be: """ Success: Added term. """ When I run `wp post term list 1 category --fields=name,slug,taxonomy` Then STDOUT should be a table containing rows: | name | slug | taxonomy | | foo | foo | category | When I run `wp post term add 1 category bar` Then STDOUT should be: """ Success: Added term. """ When I run `wp post term list 1 category --fields=name,slug,taxonomy` Then STDOUT should be a table containing rows: | name | slug | taxonomy | | foo | foo | category | | bar | bar | category | When I run `wp post term list 1 category --format=ids` Then STDOUT should be: """ 3 2 1 """ When I try `wp post term list 1 foo2` Then STDERR should be: """ Error: Invalid taxonomy foo2. """ And the return code should be 1 When I run `wp post term set 1 category new` Then STDOUT should be: """ Success: Set term. """ When I run `wp post term list 1 category --fields=name,slug,taxonomy --format=count` Then STDOUT should be: """ 1 """ When I run `wp post term list 1 category --field=slug` Then STDOUT should be: """ new """ When I run `wp post term remove 1 category new` Then STDOUT should be: """ Success: Removed term. """ When I run `wp post term list 1 category --fields=name,slug,taxonomy --format=count` Then STDOUT should be: """ 0 """ Scenario: Multiple post term Given a WP install When I run `wp post term add 1 category apple` And I run `wp post term add 1 category apple` Then STDOUT should be: """ Success: Added term. """ When I run `wp post term set 1 category apple1 apple2` Then STDOUT should be: """ Success: Set terms. """ When I run `wp post term list 1 category --fields=name,slug,taxonomy` Then STDOUT should be a table containing rows: | name | slug | taxonomy | | apple1 | apple1 | category | | apple2 | apple2 | category | Scenario: Invalid Post ID Given a WP install When I try `wp post term add 99999 category boo` Then the return code should be 1 And STDERR should be: """ Error: Could not find the post with ID 99999. """ Scenario: Postterm Add invalid tax Given a WP install When I try `wp post term add 1 foo2 boo` Then the return code should be 1 And STDERR should be: """ Error: Invalid taxonomy foo2. """ Scenario: Add terms by term id Given a WP install When I run `wp term create post_tag 3 --porcelain` Then STDOUT should be: """ 2 """ When I run `wp term create post_tag 4 --porcelain` Then STDOUT should be: """ 3 """ When I run `wp term create post_tag 2 --porcelain` Then STDOUT should be: """ 4 """ When I run `wp post term add 1 post_tag 4` Then STDOUT should contain: """ Success: Added term. """ When I run `wp post term add 1 post_tag 2` Then STDOUT should contain: """ Success: Added term. """ When I run `wp post term list 1 post_tag --fields=term_id,name,slug` Then STDOUT should be a table containing rows: | term_id | name | slug | | 4 | 2 | 2 | | 3 | 4 | 4 | When I run `wp post term remove 1 post_tag 4 2` Then STDOUT should be: """ Success: Removed terms. """ When I run `wp post term add 1 post_tag 4 --by=id` Then STDOUT should contain: """ Success: Added term. """ When I run `wp post term list 1 post_tag --fields=term_id,name,slug` Then STDOUT should be a table containing rows: | term_id | name | slug | | 4 | 2 | 2 | When I run `wp post term add 1 post_tag 3 --by=slug` Then STDOUT should contain: """ Success: Added term. """ When I run `wp post term list 1 post_tag --fields=term_id,name,slug` Then STDOUT should be a table containing rows: | term_id | name | slug | | 2 | 3 | 3 | | 4 | 2 | 2 | When I run `wp post term remove 1 post_tag 2 --by=id` Then STDOUT should be: """ Success: Removed term. """ When I run `wp post term list 1 post_tag --fields=term_id,name,slug` Then STDOUT should be a table containing rows: | term_id | name | slug | | 4 | 2 | 2 | When I run `wp post term set 1 post_tag 3 --by=id` Then STDOUT should contain: """ Success: Set term. """ When I run `wp post term list 1 post_tag --fields=term_id,name,slug` Then STDOUT should be a table containing rows: | term_id | name | slug | | 3 | 4 | 4 | Scenario: Remove all terms from post Given a WP install When I run `wp post term remove 1 category --all` Then STDOUT should be: """ Success: Removed all terms and set default term. """ When I try `wp post term remove 1 category cat1 cat2 --all` Then STDERR should be: """ Error: No need to specify terms while removing all terms. """ And the return code should be 1