Make WordPress Core

Ticket #43055: 43055.11.diff

File 43055.11.diff, 766 bytes (added by danielbachhuber, 7 years ago)
  • tests/phpunit/includes/bootstrap.php

    diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php
    index f924a7dc03..eccf49354f 100644
    a b if ( ! is_readable( $config_file_path ) ) { 
    3232require_once $config_file_path;
    3333require_once dirname( __FILE__ ) . '/functions.php';
    3434
    35 if ( file_exists( ABSPATH . '_index.php' ) ) {
     35if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && file_exists( ABSPATH . '_index.php' ) ) {
    3636        // Perhaps add more documentation about having to run `grunt` before running tests after changing code.
    3737        echo "ERROR: ABSPATH must point to the `build` directory, not the `src` directory. Please update your wp-tests-config.php file.\n";
    3838        exit( 1 );