Skip to content

Commit

Permalink
Merge pull request 10up#3962 from 10up/chore/change-hardcoded-temp-path
Browse files Browse the repository at this point in the history
Change hardcoded tmp directory path with a dynamic one
  • Loading branch information
felipeelia authored Aug 12, 2024
2 parents 4b047c0 + 3097d5a commit dcfc7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

$_tests_dir = getenv( 'WP_TESTS_DIR' );
if ( ! $_tests_dir ) {
$_tests_dir = '/tmp/wordpress-tests-lib';
$_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
}

require_once $_tests_dir . '/includes/functions.php';
Expand Down

0 comments on commit dcfc7fd

Please sign in to comment.