Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"wp-cli/entity-command": "^1.3 || ^2 || ^3",
"wp-cli/eval-command": "^2.0 || ^3",
"wp-cli/server-command": "^2.0 || ^3",
"wp-cli/wp-cli-tests": "^5"
"wp-cli/wp-cli-tests": "dev-setup-commands-step as 5.3.99"
},
"config": {
"process-timeout": 7200,
Expand Down
8 changes: 5 additions & 3 deletions features/cron-event.feature
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ Feature: Manage WP Cron events
Success: Unscheduled 1 event for hook 'wp_cli_test_event_1'.
"""

When I run `wp cron event schedule wp_cli_test_event_2 now hourly`
And I run `wp cron event schedule wp_cli_test_event_2 '+1 hour' hourly`
And I try `wp cron event unschedule wp_cli_test_event_2`
Given these setup commands:
| command |
| wp cron event schedule wp_cli_test_event_2 now hourly |
| wp cron event schedule wp_cli_test_event_2 '+1 hour' hourly |
When I try `wp cron event unschedule wp_cli_test_event_2`
Then STDOUT should contain:
"""
Success: Unscheduled 2 events for hook 'wp_cli_test_event_2'.
Expand Down
Loading