|
@@ -8,11 +8,11 @@ discard block |
|
|
block discarded – undo |
|
8
|
8
|
$_tests_dir = getenv( 'WP_TESTS_DIR' ); |
|
9
|
9
|
|
|
10
|
10
|
if ( ! $_tests_dir ) { |
|
11
|
|
- $_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib'; |
|
|
11
|
+ $_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib'; |
|
12
|
12
|
} |
|
13
|
13
|
|
|
14
|
14
|
if ( ! file_exists( $_tests_dir . '/includes/functions.php' ) ) { |
|
15
|
|
- throw new Exception( "Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?" ); |
|
|
15
|
+ throw new Exception( "Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?" ); |
|
16
|
16
|
} |
|
17
|
17
|
|
|
18
|
18
|
// Give access to tests_add_filter() function. |
|
@@ -22,7 +22,7 @@ discard block |
|
|
block discarded – undo |
|
22
|
22
|
* Manually load the plugin being tested. |
|
23
|
23
|
*/ |
|
24
|
24
|
function _manually_load_plugin() { |
|
25
|
|
- require dirname( dirname( __FILE__ ) ) . '/wp-site-monitor.php'; |
|
|
25
|
+ require dirname( dirname( __FILE__ ) ) . '/wp-site-monitor.php'; |
|
26
|
26
|
} |
|
27
|
27
|
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' ); |
|
28
|
28
|
|
Please login to merge, or discard this patch.