diff options
Diffstat (limited to 'wp-tests-config-sample.php')
-rw-r--r-- | wp-tests-config-sample.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wp-tests-config-sample.php b/wp-tests-config-sample.php index 5368d89e1e..2f6c515912 100644 --- a/wp-tests-config-sample.php +++ b/wp-tests-config-sample.php @@ -1,7 +1,11 @@ <?php /* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */ -define( 'ABSPATH', dirname( __FILE__ ) . '/src/' ); +if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { + define( 'ABSPATH', dirname( __FILE__ ) . '/build/' ); +} else { + define( 'ABSPATH', dirname( __FILE__ ) . '/src/' ); +} /* * Path to the theme to test with. |