Make WordPress Core


Ignore:
Timestamp:
05/23/2018 05:54:44 PM (7 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-tests-config-sample.php

    r43309 r43311  
    22
    33/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
    4 define( 'ABSPATH', dirname( __FILE__ ) . '/build/' );
     4if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) {
     5    define( 'ABSPATH', dirname( __FILE__ ) . '/build/' );
     6} else {
     7    define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );
     8}
    59
    610/*
Note: See TracChangeset for help on using the changeset viewer.