Skip to:
Content

BuddyPress.org

Ticket #8248: 8248.diff

File 8248.diff, 1.5 KB (added by fahimmurshed, 4 years ago)

Patch

  • define-constants.php

     
    2424        define( 'WP_TESTS_DIR', getenv( 'WP_TESTS_DIR' ) );
    2525        define( 'WP_ROOT_DIR', WP_TESTS_DIR );
    2626} else {
    27         // Support WP_DEVELOP_DIR, as used by some plugins
     27        // Support WP_DEVELOP_DIR, as used by some plugins.
    2828        if ( false !== getenv( 'WP_DEVELOP_DIR' ) ) {
    2929                define( 'WP_ROOT_DIR', getenv( 'WP_DEVELOP_DIR' ) );
    3030        } else {
     
    3434        define( 'WP_TESTS_DIR', WP_ROOT_DIR . '/tests/phpunit' );
    3535}
    3636
    37 // Based on the tests directory, look for a config file
     37// Based on the tests directory, look for a config file.
    3838if ( file_exists( WP_ROOT_DIR . '/wp-tests-config.php' ) ) {
    39         // Standard develop.svn.wordpress.org setup
     39        // Standard develop.svn.wordpress.org setup.
    4040        define( 'WP_TESTS_CONFIG_PATH', WP_ROOT_DIR . '/wp-tests-config.php' );
    4141
    4242} elseif ( file_exists( WP_TESTS_DIR . '/wp-tests-config.php' ) ) {
    43         // Legacy unit-test.svn.wordpress.org setup
     43        // Legacy unit-test.svn.wordpress.org setup.
    4444        define( 'WP_TESTS_CONFIG_PATH', WP_TESTS_DIR . '/wp-tests-config.php' );
    4545
    4646} elseif ( file_exists( dirname( dirname( WP_TESTS_DIR ) ) . '/wp-tests-config.php' ) ) {
    4747        // Environment variable exists and points to tests/phpunit of
    48         // develop.svn.wordpress.org setup
     48        // develop.svn.wordpress.org setup.
    4949        define( 'WP_TESTS_CONFIG_PATH', dirname( dirname( WP_TESTS_DIR ) ) . '/wp-tests-config.php' );
    5050
    5151} else {