You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Run cron events with --network flag on non-multisite
163
+
When I try `wp cron event run --due-now --network`
164
+
Then STDERR should be:
165
+
"""
166
+
Error: This is not a multisite installation.
167
+
"""
168
+
And the return code should be 1
169
+
170
+
Scenario: Run cron events with --network flag on multisite
171
+
Given a WP multisite subdirectory install
172
+
And I run `wp site create --slug=site2`
173
+
And I run `wp site create --slug=site3`
174
+
175
+
When I run `wp cron event schedule wp_cli_network_test now`
176
+
Then STDOUT should contain:
177
+
"""
178
+
Success: Scheduled event with hook 'wp_cli_network_test'
179
+
"""
180
+
181
+
When I run `wp --url=example.com/site2 cron event schedule wp_cli_network_test_site2 now`
182
+
Then STDOUT should contain:
183
+
"""
184
+
Success: Scheduled event with hook 'wp_cli_network_test_site2'
185
+
"""
186
+
187
+
When I run `wp cron event run --due-now --network --exclude=wp_privacy_delete_old_export_files,wp_version_check,wp_update_plugins,wp_update_themes,wp_site_health_scheduled_check,wp_update_user_counts,wp_scheduled_delete,wp_scheduled_auto_draft_delete`
188
+
Then STDOUT should contain:
189
+
"""
190
+
Executed the cron event 'wp_cli_network_test'
191
+
"""
192
+
And STDOUT should contain:
193
+
"""
194
+
Executed the cron event 'wp_cli_network_test_site2'
195
+
"""
196
+
And STDOUT should contain:
197
+
"""
198
+
Success: Executed a total of 2 cron events across 3 sites.
199
+
"""
200
+
162
201
Scenario: List cron events with actions field
163
202
Given a wp-content/mu-plugins/test-cron-actions.php file:
0 commit comments