Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
9751ac77
Commit
9751ac77
authored
Mar 24, 2017
by
Erick Hitter
Browse files
Doc why we do what we do to get the table loaded during tests
parent
86f50487
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/bootstrap.php
View file @
9751ac77
...
...
@@ -22,6 +22,7 @@ function _manually_load_plugin() {
require
dirname
(
dirname
(
__FILE__
)
)
.
'/cron-control.php'
;
// Plugin loads after `wp_install()` is called, so we compensate
// See the `class_init()` method in Events_Store for the logic behind this
\
Automattic\WP\Cron_Control\Events_Store
::
instance
()
->
prepare_table
();
remove_filter
(
'schedule_event'
,
'__return_false'
);
add_filter
(
'pre_option_cron'
,
array
(
\
Automattic\WP\Cron_Control\Events_Store
::
instance
(),
'get_option'
)
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment