mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Build/Test Tools: Roses are red, this fixes stuff.
Update the test infrastructure so that third party plugins, themes, and projects that use the core testing framework continue to operate from the `src` directory and do not require a build step. Props mboynes, danielbachhuber, schlessera See #43055 git-svn-id: https://develop.svn.wordpress.org/trunk@43311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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__ ) . '/build/' );
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user