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-generate.feature
Close
Feature: Generate new WordPress posts Background: Given a WP install Scenario: Generating posts When I run `echo "Content generated by wp post generate" | wp post generate --count=1 --post_content` And I run `wp post list --field=post_content` Then STDOUT should contain: """ Content generated by wp post generate """ And STDERR should be empty @broken Scenario: Using --post-content requires STDIN input When I try `wp post generate --count=1 --post_content` Then STDERR should contain: """ Error: The parameter `post_content` reads from STDIN. """ Scenario: Generating posts by a specific author When I run `wp user create dummyuser dummy@example.com --porcelain` Then save STDOUT as {AUTHOR_ID} When I run `wp post generate --post_author={AUTHOR_ID} --post_type=post --count=16` And I run `wp post list --post_type=post --author={AUTHOR_ID} --format=count` Then STDOUT should contain: """ 16 """ Scenario: Generating pages When I run `wp post generate --post_type=page --max_depth=10` And I run `wp post list --post_type=page --field=post_parent` Then STDOUT should contain: """ 1 """ Scenario: Generating posts and outputting ids When I run `wp post generate --count=1 --format=ids` Then save STDOUT as {POST_ID} When I run `wp post update {POST_ID} --post_title="foo"` Then STDOUT should contain: """ Success: """ Scenario: Generating post and outputting title and name When I run `wp post generate --count=3 --post_title=Howdy!` And I run `wp post list --field=post_title --posts_per_page=4 --orderby=ID --order=asc` Then STDOUT should contain: """ Hello world! Howdy! Howdy! 2 Howdy! 3 """ And STDERR should be empty When I run `wp post list --field=post_name --posts_per_page=4 --orderby=ID --order=asc` Then STDOUT should contain: """ hello-world howdy howdy-2 howdy-3 """ And STDERR should be empty Scenario: Generating posts with post_date argument without time When I run `wp post generate --count=1 --post_date="2018-07-01"` And I run `wp post list --field=post_date` Then STDOUT should contain: """ 2018-07-01 00:00:00 """ When I run `wp post list --field=post_date_gmt` Then STDOUT should contain: """ 2018-07-01 00:00:00 """ Scenario: Generating posts with post_date argument with time When I run `wp post generate --count=1 --post_date="2018-07-02 02:21:05"` And I run `wp post list --field=post_date` Then STDOUT should contain: """ 2018-07-02 02:21:05 """ When I run `wp post list --field=post_date_gmt` Then STDOUT should contain: """ 2018-07-02 02:21:05 """ Scenario: Generating posts with post_date_gmt argument without time When I run `wp post generate --count=1 --post_date_gmt="2018-07-03"` And I run `wp post list --field=post_date` Then STDOUT should contain: """ 2018-07-03 00:00:00 """ When I run `wp post list --field=post_date_gmt` Then STDOUT should contain: """ 2018-07-03 00:00:00 """ Scenario: Generating posts with post_date_gmt argument with time When I run `wp post generate --count=1 --post_date_gmt="2018-07-04 12:34:56"` And I run `wp post list --field=post_date` Then STDOUT should contain: """ 2018-07-04 12:34:56 """ When I run `wp post list --field=post_date_gmt` Then STDOUT should contain: """ 2018-07-04 12:34:56 """ Scenario: Generating posts with post_date argument with hyphenated time When I run `wp post generate --count=1 --post_date="2018-07-05-17:17:17"` And I run `wp post list --field=post_date` Then STDOUT should contain: """ 2018-07-05 17:17:17 """ When I run `wp post list --field=post_date_gmt` Then STDOUT should contain: """ 2018-07-05 17:17:17 """ Scenario: Generating posts with post_date_gmt argument with hyphenated time When I run `wp post generate --count=1 --post_date_gmt="2018-07-06-12:12:12"` And I run `wp post list --field=post_date` Then STDOUT should contain: """ 2018-07-06 12:12:12 """ When I run `wp post list --field=post_date_gmt` Then STDOUT should contain: """ 2018-07-06 12:12:12 """ Scenario: Generating posts with different post_date & post_date_gmt argument without time When I run `wp post generate --count=1 --post_date="1999-12-31" --post_date_gmt="2000-01-01"` And I run `wp post list --field=post_date` Then STDOUT should contain: """ 1999-12-31 00:00:00 """ When I run `wp post list --field=post_date_gmt` Then STDOUT should contain: """ 2000-01-01 00:00:00 """ Scenario: Generating posts with different post_date & post_date_gmt argument with time When I run `wp post generate --count=1 --post_date="1999-12-31 11:11:00" --post_date_gmt="2000-01-01 02:11:00"` And I run `wp post list --field=post_date` Then STDOUT should contain: """ 1999-12-31 11:11:00 """ When I run `wp post list --field=post_date_gmt` Then STDOUT should contain: """ 2000-01-01 02:11:00 """ Scenario: Generating posts when the site timezone is ahead of UTC When I run `wp option update timezone_string "Europe/Helsinki"` And I run `wp post delete 1 --force` And I run `wp post list --field=post_status` Then STDOUT should be empty When I run `wp post generate --count=1` And I run `wp post list --field=post_status` Then STDOUT should be: """ publish """