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
This commit is contained in:
Sergey Biryukov 2020-02-06 21:49:13 +00:00
parent 3096571047
commit f91e983acb

View File

@ -2,9 +2,9 @@
/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */ /* 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 ) { if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) {
define( 'ABSPATH', __DIR__ . '/build/' ); define( 'ABSPATH', dirname( __FILE__ ) . '/build/' );
} else { } else {
define( 'ABSPATH', __DIR__ . '/src/' ); define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );
} }
/* /*