Make WordPress Core


Ignore:
Timestamp:
02/06/2020 09:49:13 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r47198 r47201  
    33/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
    44if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) {
    5     define( 'ABSPATH', __DIR__ . '/build/' );
     5    define( 'ABSPATH', dirname( __FILE__ ) . '/build/' );
    66} else {
    7     define( 'ABSPATH', __DIR__ . '/src/' );
     7    define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );
    88}
    99
Note: See TracChangeset for help on using the changeset viewer.