Changeset 43311
- Timestamp:
- 05/23/2018 05:54:44 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r43309 r43311 33 33 require_once dirname( __FILE__ ) . '/functions.php'; 34 34 35 if ( file_exists( ABSPATH . '_index.php' ) ) {35 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && file_exists( ABSPATH . '_index.php' ) ) { 36 36 // Perhaps add more documentation about having to run `grunt` before running tests after changing code. 37 37 echo "ERROR: ABSPATH must point to the `build` directory, not the `src` directory. Please update your wp-tests-config.php file.\n"; -
trunk/wp-tests-config-sample.php
r43309 r43311 2 2 3 3 /* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */ 4 define( 'ABSPATH', dirname( __FILE__ ) . '/build/' ); 4 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 5 define( 'ABSPATH', dirname( __FILE__ ) . '/build/' ); 6 } else { 7 define( 'ABSPATH', dirname( __FILE__ ) . '/src/' ); 8 } 5 9 6 10 /*
Note: See TracChangeset
for help on using the changeset viewer.