Skip to content

Commit 30c3e22

Browse files
authored
Merge pull request #113 from wp-cli/fix/old-tests
Skip failing test on 4.9
2 parents cad4e99 + 2708859 commit 30c3e22

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

features/cron-event.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Feature: Manage WP Cron events
33
Background:
44
Given a WP install
55

6+
# Fails on WordPress 4.9 because `wp cron event run --due-now`
7+
# executes the "wp_privacy_delete_old_export_files" event there.
8+
@require-wp-5.0
69
Scenario: --due-now with supplied events should only run those
710
# WP throws a notice here for older versions of core.
811
When I try `wp cron event run --all`

features/cron.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ Feature: Manage WP-Cron events and schedules
303303
Success: Executed a total of
304304
"""
305305

306+
# Fails on WordPress 4.9 because `wp cron event run --due-now`
307+
# executes the "wp_privacy_delete_old_export_files" event there.
308+
@require-wp-5.0
306309
Scenario: Run currently scheduled events
307310
# WP throws a notice here for older versions of core.
308311
When I try `wp cron event run --all`

0 commit comments

Comments
 (0)