From e88eb4a63fc6e088486967c672823fa22a14888f Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 10 Jan 2019 02:03:25 +0000 Subject: [PATCH] Build/Tests: Allow running unit tests from `src`. This is a partial recommit of [44509]: it allows running unit tests from `src` (which is useful), but doesn't make it the default (which Travis is having issues with). See #45863. git-svn-id: https://develop.svn.wordpress.org/trunk@44534 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/bootstrap.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php index eebc649efa..47c59528be 100644 --- a/tests/phpunit/includes/bootstrap.php +++ b/tests/phpunit/includes/bootstrap.php @@ -36,12 +36,6 @@ if ( ! is_readable( $config_file_path ) ) { require_once $config_file_path; require_once dirname( __FILE__ ) . '/functions.php'; -if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && file_exists( ABSPATH . '_index.php' ) ) { - // Perhaps add more documentation about having to run `grunt` before running tests after changing code. - echo "ERROR: ABSPATH must point to the `build` directory, not the `src` directory. Please update your wp-tests-config.php file.\n"; - exit( 1 ); -} - tests_reset__SERVER(); define( 'WP_TESTS_TABLE_PREFIX', $table_prefix );