diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php
index 0390d62312..c60df13b7e 100644
|
a
|
b
|
if ( version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) { |
| 47 | 47 | |
| 48 | 48 | tests_reset__SERVER(); |
| 49 | 49 | |
| | 50 | if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! is_dir( ABSPATH ) ) { |
| | 51 | echo "ERROR: The /build/ directory is missing! Please run `grunt build` prior to running PHPUnit.\n"; |
| | 52 | exit( 1 ); |
| | 53 | } |
| | 54 | |
| 50 | 55 | define( 'WP_TESTS_TABLE_PREFIX', $table_prefix ); |
| 51 | 56 | define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/../data' ); |
| 52 | 57 | define( 'DIR_TESTROOT', realpath( dirname( dirname( __FILE__ ) ) ) ); |