Changeset 47496
- Timestamp:
- 03/24/2020 12:18:29 AM (5 years ago)
- Location:
- trunk/tests/phpunit/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r47328 r47496 98 98 99 99 if ( '1' !== getenv( 'WP_TESTS_SKIP_INSTALL' ) ) { 100 system( WP_PHP_BINARY . ' ' . escapeshellarg( __DIR__ . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval ); 100 $core_tests = ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) ? 'run_core_tests' : 'no_core_tests'; 101 $ms_tests = $multisite ? 'run_ms_tests' : 'no_ms_tests'; 102 103 system( WP_PHP_BINARY . ' ' . escapeshellarg( __DIR__ . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $ms_tests . ' ' . $core_tests, $retval ); 101 104 if ( 0 !== $retval ) { 102 105 exit( $retval ); -
trunk/tests/phpunit/includes/install.php
r47198 r47496 8 8 9 9 $config_file_path = $argv[1]; 10 $multisite = ! empty( $argv[2] ); 10 $multisite = in_array( 'run_ms_tests', $argv, true ); 11 12 if ( ! defined( 'WP_RUN_CORE_TESTS' ) && in_array( 'run_core_tests', $argv, true ) ) { 13 define( 'WP_RUN_CORE_TESTS', true ); 14 } 11 15 12 16 define( 'WP_INSTALLING', true );
Note: See TracChangeset
for help on using the changeset viewer.