Skip to content

Commit

Permalink
chore: Update tests bootstrap.php to use system temp directory for Wo…
Browse files Browse the repository at this point in the history
…rdPress tests
  • Loading branch information
burhandodhy committed Aug 12, 2024
2 parents 9a1ffe3 + 237cd6d commit 4d2408a
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 4d2408a

Please sign in to comment.