Make WordPress Core

Changeset 1320 in tests for trunk/includes/bootstrap.php


Ignore:
Timestamp:
07/28/2013 08:48:25 PM (11 years ago)
Author:
bpetty
Message:

Provide way to trigger multisite tests by setting WP_TESTS_MULTISITE environment variable (for Travis build matrix).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/bootstrap.php

    r1300 r1320  
    4040$PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
    4141
    42 $multisite = (int) ( defined( 'WP_TESTS_MULTISITE') && WP_TESTS_MULTISITE );
     42if ( "1" == getenv( 'WP_TESTS_MULTISITE' ) ||
     43    ( defined( 'WP_TESTS_MULTISITE') && WP_TESTS_MULTISITE ) ) {
     44    $multisite = true;
     45} else {
     46    $multisite = false;
     47}
    4348
    4449// Override the PHPMailer
Note: See TracChangeset for help on using the changeset viewer.