Skip to content

Commit

Permalink
Merge pull request #36 from ocean90/fix/cron-test
Browse files Browse the repository at this point in the history
Make sure WP Cron is enabled for cron tests
  • Loading branch information
schlessera authored Nov 24, 2018
2 parents 243201f + 6a6ba3d commit 1eadbe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"require-dev": {
"wp-cli/entity-command": "^1.3 || ^2",
"wp-cli/wp-cli-tests": "^2.0.7"
"wp-cli/wp-cli-tests": "^2.0.11"
},
"config": {
"process-timeout": 7200,
Expand Down
1 change: 1 addition & 0 deletions features/cron.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Feature: Manage WP-Cron events and schedules

Background:
Given a WP install
And I run `wp config set DISABLE_WP_CRON false --raw --type=constant --anchor='// ** MySQL settings ** //'`

Scenario: Scheduling and then deleting an event
When I run `wp cron event schedule wp_cli_test_event_1 '+1 hour 5 minutes' --apple=banana`
Expand Down

0 comments on commit 1eadbe6

Please sign in to comment.