Make WordPress Core

Changeset 925 in tests for trunk/bin/install.php


Ignore:
Timestamp:
07/19/2012 07:17:16 PM (14 years ago)
Author:
nacin
Message:

phpunit -c multisite now runs the suite as multisite. see #49, #42.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/install.php

    r883 r925  
    88
    99$config_file_path = $argv[1];
     10$multisite = ! empty( $argv[2] );
    1011
    1112$config_dir = dirname( $config_file_path );
    … …  
    3031$wpdb->suppress_errors( false );
    3132
    32 $hash = get_option( 'db_version' ) . ' ' . sha1_file( $config_file_path );
     33$hash = get_option( 'db_version' ) . ' ' . (int) $multisite . ' ' . sha1_file( $config_file_path );
    3334
    3435if ( $installed && file_exists( WP_TESTS_VERSION_FILE ) && file_get_contents( WP_TESTS_VERSION_FILE ) == $hash )
    … …  
    4344wp_install( WP_TESTS_TITLE, 'admin', WP_TESTS_EMAIL, true, null, 'password' );
    4445
    45 if ( defined( 'WP_TESTS_MULTISITE' ) && WP_TESTS_MULTISITE ) {
     46if ( $multisite ) {
    4647        echo "Installing network…" . PHP_EOL;
    4748
Note: See TracChangeset for help on using the changeset viewer.