Skip to content

Commit 6a6ba3d

Browse files
committed
Try enabling WP cron for tests
1 parent 9764acf commit 6a6ba3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

features/cron.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Feature: Manage WP-Cron events and schedules
22

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

67
Scenario: Scheduling and then deleting an event
78
When I run `wp cron event schedule wp_cli_test_event_1 '+1 hour 5 minutes' --apple=banana`
@@ -190,9 +191,9 @@ Feature: Manage WP-Cron events and schedules
190191

191192
Scenario: Testing WP-Cron
192193
When I try `wp cron test`
193-
Then STDERR should be:
194+
Then STDERR should not contain:
194195
"""
195-
Error: The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.
196+
Error:
196197
"""
197198

198199
Scenario: Run multiple cron events

0 commit comments

Comments
 (0)