Make WordPress Core

Ticket #46593: 46593.diff

File 46593.diff, 717 bytes (added by davidbaumwald, 7 years ago)
  • tests/phpunit/includes/bootstrap.php

    diff --git a/tests/phpunit/includes/bootstrap.php b/tests/phpunit/includes/bootstrap.php
    index 0390d62312..c60df13b7e 100644
    a b if ( version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) { 
    4747
    4848tests_reset__SERVER();
    4949
     50if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! is_dir( ABSPATH ) ) {
     51        echo "ERROR: The /build/ directory is missing! Please run `grunt build` prior to running PHPUnit.\n";
     52        exit( 1 );
     53}
     54
    5055define( 'WP_TESTS_TABLE_PREFIX', $table_prefix );
    5156define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/../data' );
    5257define( 'DIR_TESTROOT', realpath( dirname( dirname( __FILE__ ) ) ) );