Make WordPress Core


Ignore:
Timestamp:
03/24/2020 12:18:29 AM (5 years ago)
Author:
azaozz
Message:

Build/Test Tools: Fix PHPUnit bootstrap to install WP from /build when tests are run with npm run test, grunt test, grunt then phpunit, etc.

Fixes #49663.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/install.php

    r47198 r47496  
    88
    99$config_file_path = $argv[1];
    10 $multisite        = ! empty( $argv[2] );
     10$multisite        = in_array( 'run_ms_tests', $argv, true );
     11
     12if ( ! defined( 'WP_RUN_CORE_TESTS' ) && in_array( 'run_core_tests', $argv, true ) ) {
     13    define( 'WP_RUN_CORE_TESTS', true );
     14}
    1115
    1216define( 'WP_INSTALLING', true );
Note: See TracChangeset for help on using the changeset viewer.