@@ -10,11 +10,11 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class SampleTest extends WP_UnitTestCase { |
| 12 | 12 | |
| 13 | - /** |
|
| 14 | - * A single example test. |
|
| 15 | - */ |
|
| 16 | - function test_sample() { |
|
| 17 | - // Replace this with some actual testing code. |
|
| 18 | - $this->assertTrue( true ); |
|
| 19 | - } |
|
| 13 | + /** |
|
| 14 | + * A single example test. |
|
| 15 | + */ |
|
| 16 | + function test_sample() { |
|
| 17 | + // Replace this with some actual testing code. |
|
| 18 | + $this->assertTrue( true ); |
|
| 19 | + } |
|
| 20 | 20 | } |
@@ -8,11 +8,11 @@ discard block |
||
| 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 |
||
| 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 | |