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/' ); } /*