Changeset 43369 for trunk/tests/phpunit/includes/bootstrap.php
- Timestamp:
- 06/16/2018 02:21:18 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r43315 r43369 11 11 } 12 12 13 $config_file_path = dirname( dirname( __FILE__ ) ); 14 if ( ! file_exists( $config_file_path . '/wp-tests-config.php' ) ) { 15 // Support the config file from the root of the develop repository. 16 if ( basename( $config_file_path ) === 'phpunit' && basename( dirname( $config_file_path ) ) === 'tests' ) { 17 $config_file_path = dirname( dirname( $config_file_path ) ); 18 } 19 } 20 $config_file_path .= '/wp-tests-config.php'; 13 if ( defined( 'WP_TESTS_CONFIG_FILE_PATH' ) ) { 14 $config_file_path = WP_TESTS_CONFIG_FILE_PATH; 15 } else { 16 $config_file_path = dirname( dirname( __FILE__ ) ); 17 if ( ! file_exists( $config_file_path . '/wp-tests-config.php' ) ) { 18 // Support the config file from the root of the develop repository. 19 if ( basename( $config_file_path ) === 'phpunit' && basename( dirname( $config_file_path ) ) === 'tests' ) { 20 $config_file_path = dirname( dirname( $config_file_path ) ); 21 } 22 } 23 $config_file_path .= '/wp-tests-config.php'; 24 } 21 25 22 26 /*
Note: See TracChangeset
for help on using the changeset viewer.