Skip to content

Commit

Permalink
Change hardcoded tmp directory path with a dynamic one
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Aug 12, 2024
1 parent 4b047c0 commit 3097d5a
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 3097d5a

Please sign in to comment.