Ticket #36567: 36567.diff
File 36567.diff, 1.2 KB (added by , 8 years ago) |
---|
-
tests/phpunit/includes/bootstrap.php
42 42 43 43 $PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php'; 44 44 45 if ( "1" == getenv( 'WP_MULTISITE' ) || 46 ( defined( 'WP_TESTS_MULTISITE') && WP_TESTS_MULTISITE ) ) { 47 $multisite = true; 48 } else { 49 $multisite = false; 50 } 45 // Should we run in multisite mode? 46 $multisite = '1' == getenv( 'WP_MULTISITE' ); 47 $multisite = $multisite || ( defined( 'WP_TESTS_MULTISITE') && WP_TESTS_MULTISITE ); 48 $multisite = $multisite || ( defined( 'MULTISITE' ) && MULTISITE ); 51 49 52 50 // Override the PHPMailer 53 51 require_once( dirname( __FILE__ ) . '/mock-mailer.php' ); … … 57 55 58 56 if ( $multisite ) { 59 57 echo "Running as multisite..." . PHP_EOL; 60 define ( 'MULTISITE', true );61 define ( 'SUBDOMAIN_INSTALL', false );58 defined( 'MULTISITE' ) or define( 'MULTISITE', true ); 59 defined( 'SUBDOMAIN_INSTALL' ) or define( 'SUBDOMAIN_INSTALL', false ); 62 60 $GLOBALS['base'] = '/'; 63 61 } else { 64 62 echo "Running as single site... To run multisite, use -c tests/phpunit/multisite.xml" . PHP_EOL;