Skip to:
Content

BuddyPress.org

Ticket #5376: 5376.2.diff

File 5376.2.diff, 1.7 KB (added by netweb, 12 years ago)
  • tests/phpunit/includes/define-constants.php

     
    2222 */
    2323if ( false !== getenv( 'WP_TESTS_DIR' ) ) {
    2424        define( 'WP_TESTS_DIR', getenv( 'WP_TESTS_DIR' ) );
    2525        define( 'WP_ROOT_DIR', WP_TESTS_DIR );
    2626} else {
    2727        // Support WP_DEVELOP_DIR, as used by some plugins
    2828        if ( false !== getenv( 'WP_DEVELOP_DIR' ) ) {
    29                 define( 'WP_TESTS_DIR', getenv( 'WP_DEVELOP_DIR' ) );
     29                define( 'WP_ROOT_DIR', getenv( 'WP_DEVELOP_DIR' ) );
    3030        } else {
    3131                define( 'WP_ROOT_DIR', dirname( dirname( dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) ) ) );
    3232        }
    3333
    3434        define( 'WP_TESTS_DIR', WP_ROOT_DIR . '/tests/phpunit' );
    3535}
    3636