Ticket #49663: 49663.1.diff
File 49663.1.diff, 1.3 KB (added by , 5 years ago) |
---|
-
tests/phpunit/includes/bootstrap.php
97 97 } 98 98 99 99 if ( '1' !== getenv( 'WP_TESTS_SKIP_INSTALL' ) ) { 100 // Need to pass constants and vars as PHP is invoked from cli in a child process. 101 // Ideally `putenv()` should be used here (it was meant for this). If Safe Mode is on, all would need `PHP_` prefix. 102 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 103 putenv( 'PHP_WP_RUN_CORE_TESTS=TRUE' ); 104 } 105 100 106 system( WP_PHP_BINARY . ' ' . escapeshellarg( __DIR__ . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval ); 101 107 if ( 0 !== $retval ) { 102 108 exit( $retval ); -
tests/phpunit/includes/install.php
9 9 $config_file_path = $argv[1]; 10 10 $multisite = ! empty( $argv[2] ); 11 11 12 if ( ! defined( 'WP_RUN_CORE_TESTS' ) && getenv( 'PHP_WP_RUN_CORE_TESTS' ) === 'TRUE' ) { 13 define( 'WP_RUN_CORE_TESTS', true ); 14 } 15 12 16 define( 'WP_INSTALLING', true ); 13 17 require_once $config_file_path; 14 18 require_once __DIR__ . '/functions.php';