mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@47496 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -97,7 +97,10 @@ if ( file_exists( DIR_TESTDATA . '/themedir1' ) ) {
|
||||
}
|
||||
|
||||
if ( '1' !== getenv( 'WP_TESTS_SKIP_INSTALL' ) ) {
|
||||
system( WP_PHP_BINARY . ' ' . escapeshellarg( __DIR__ . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval );
|
||||
$core_tests = ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) ? 'run_core_tests' : 'no_core_tests';
|
||||
$ms_tests = $multisite ? 'run_ms_tests' : 'no_ms_tests';
|
||||
|
||||
system( WP_PHP_BINARY . ' ' . escapeshellarg( __DIR__ . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $ms_tests . ' ' . $core_tests, $retval );
|
||||
if ( 0 !== $retval ) {
|
||||
exit( $retval );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user