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
ce26c87c
Verified
Commit
ce26c87c
authored
Nov 11, 2016
by
Erick Hitter
Browse files
Define the constant this plugin needs to actually do anything
parent
fe6985ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/bootstrap.php
View file @
ce26c87c
...
...
@@ -17,6 +17,8 @@ require_once $_tests_dir . '/includes/functions.php';
* Manually load the plugin being tested.
*/
function
_manually_load_plugin
()
{
define
(
'WP_CRON_CONTROL_SECRET'
,
'testtesttest'
);
require
dirname
(
dirname
(
__FILE__
)
)
.
'/wp-cron-control-revisited.php'
;
}
tests_add_filter
(
'muplugins_loaded'
,
'_manually_load_plugin'
);
...
...
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