From 3097d5aa88fd5336db3647326763e7a4ed8c00a8 Mon Sep 17 00:00:00 2001 From: Burhan Nasir Date: Mon, 12 Aug 2024 15:29:41 +0500 Subject: [PATCH] Change hardcoded tmp directory path with a dynamic one --- tests/php/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/bootstrap.php b/tests/php/bootstrap.php index b04372f270..bb6789b071 100644 --- a/tests/php/bootstrap.php +++ b/tests/php/bootstrap.php @@ -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';