Changeset 51669
- Timestamp:
- 08/26/2021 05:55:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r51598 r51669 32 32 33 33 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! is_dir( ABSPATH ) ) { 34 echo 'Error: The /build/ directory is missing! Please run `npm run build` prior to running PHPUnit.' . PHP_EOL; 35 exit( 1 ); 34 if ( substr( ABSPATH, -7 ) !== '/build/' ) { 35 printf( 36 'Error: The ABSPATH constant in the `wp-tests-config.php` file is set to a non-existent path "%s". Please verify.' . PHP_EOL, 37 ABSPATH 38 ); 39 exit( 1 ); 40 } else { 41 echo 'Error: The PHPUnit tests should be run on the /src/ directory, not the /build/ directory.' 42 . ' Please update the ABSPATH constant in your `wp-tests-config.php` file to `dirname( __FILE__ ) . \'/src/\'`' 43 . ' or run `npm run build` prior to running PHPUnit.' . PHP_EOL; 44 exit( 1 ); 45 } 36 46 } 37 47
Note: See TracChangeset
for help on using the changeset viewer.