From f91e983acb98e819d80bcdfabc2c13ee622c4867 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 6 Feb 2020 21:49:13 +0000 Subject: [PATCH] Tests: Revert the `dirname( __FILE__ )` replacement in `wp-tests-config-sample.php` for now, to avoid breaking unit tests created with WP-CLI `scaffold` command. Follow-up to [47198]. Props kaggdesign, danielbachhuber, bwmarkle. Fixes #48082, #49377. git-svn-id: https://develop.svn.wordpress.org/trunk@47201 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-tests-config-sample.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-tests-config-sample.php b/wp-tests-config-sample.php index 5c978c0aec..7e87d5f6d3 100644 --- a/wp-tests-config-sample.php +++ b/wp-tests-config-sample.php @@ -2,9 +2,9 @@ /* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */ if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { - define( 'ABSPATH', __DIR__ . '/build/' ); + define( 'ABSPATH', dirname( __FILE__ ) . '/build/' ); } else { - define( 'ABSPATH', __DIR__ . '/src/' ); + define( 'ABSPATH', dirname( __FILE__ ) . '/src/' ); } /*