Make WordPress Core

Ticket #43982: 43982.diff

File 43982.diff, 749 bytes (added by johnbillion, 8 years ago)
  • tests/phpunit/includes/bootstrap.php

    diff --git tests/phpunit/includes/bootstrap.php tests/phpunit/includes/bootstrap.php
    index 460d5fbeba..b774512a4e 100644
    $phpmailer = new MockPHPMailer( true ); 
    6666if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
    6767        define( 'WP_DEFAULT_THEME', 'default' );
    6868}
    69 $wp_theme_directories = array( DIR_TESTDATA . '/themedir1' );
     69$wp_theme_directories = array();
     70
     71if ( file_exists( DIR_TESTDATA . '/themedir1' ) ) {
     72        $wp_theme_directories[] = DIR_TESTDATA . '/themedir1';
     73}
    7074
    7175system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite, $retval );
    7276if ( 0 !== $retval ) {