Skip to content

Commit 640f404

Browse files
authored
Revert "Setup & teardown hardening (#320)"
This reverts commit f77d43b.
1 parent f77d43b commit 640f404

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/Context/FeatureContext.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,11 @@ private static function get_process_env_variables(): array {
450450
$path_separator = Utils\is_windows() ? ';' : ':';
451451
$php_binary_path = dirname( PHP_BINARY );
452452
$env = [
453-
'PATH' => $php_binary_path . $path_separator . $bin_path . $path_separator . getenv( 'PATH' ),
454-
'BEHAT_RUN' => 1,
455-
'HOME' => sys_get_temp_dir() . '/wp-cli-home',
456-
'COMPOSER_HOME' => sys_get_temp_dir() . '/wp-cli-composer-home',
457-
'TEST_RUN_DIR' => self::$behat_run_dir,
458-
'WP_CLI_SKIP_PROMPT' => 'no',
453+
'PATH' => $php_binary_path . $path_separator . $bin_path . $path_separator . getenv( 'PATH' ),
454+
'BEHAT_RUN' => 1,
455+
'HOME' => sys_get_temp_dir() . '/wp-cli-home',
456+
'COMPOSER_HOME' => sys_get_temp_dir() . '/wp-cli-composer-home',
457+
'TEST_RUN_DIR' => self::$behat_run_dir,
459458
];
460459

461460
$env = array_merge( $_ENV, $env );

0 commit comments

Comments
 (0)