Skip to content

Commit c3cec50

Browse files
Account for different error message in PHP 5.6. Don't display errors.
1 parent 012c2a1 commit c3cec50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/cron-event.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,14 @@ Feature: Manage WP Cron events
123123
"""
124124

125125
And I run `wp config set WP_DEBUG true --raw`
126+
And I run `wp config set WP_DEBUG_DISPLAY false --raw`
126127
And I run `wp config set WP_DEBUG_LOG '{RUN_DIR}/server.log'`
127128

128129
When I run `wp cron event schedule mycronlog now`
129130
And I try `wp cron event run --due-now`
130131
Then STDERR should contain:
131132
"""
132-
Fatal error: Uncaught Error: Call to undefined function breakthings()
133+
Call to undefined function breakthings()
133134
"""
134135
Then the {RUN_DIR}/server.log file should exist
135136
And the {RUN_DIR}/server.log file should contain:

0 commit comments

Comments
 (0)