Make WordPress Core


Ignore:
Timestamp:
05/25/2018 10:42:11 PM (6 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Allow the unit test framework to be used without the data directory in place.

Fixes #43982

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/bootstrap.php

    r43311 r43315  
    7373    define( 'WP_DEFAULT_THEME', 'default' );
    7474}
    75 $wp_theme_directories = array( DIR_TESTDATA . '/themedir1' );
     75$wp_theme_directories = array();
     76
     77if ( file_exists( DIR_TESTDATA . '/themedir1' ) ) {
     78    $wp_theme_directories[] = DIR_TESTDATA . '/themedir1';
     79}
    7680
    7781system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval );
Note: See TracChangeset for help on using the changeset viewer.