Changeset 47343 for branches/3.7/tests/phpunit/includes/install.php
- Timestamp:
- 02/22/2020 12:05:12 PM (6 years ago)
- Location:
- branches/3.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/includes/install.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
- Property svn:mergeinfo changed
-
branches/3.7/tests/phpunit/includes/install.php
r25002 r47343 22 22 require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 23 23 require_once ABSPATH . '/wp-includes/wp-db.php'; 24 25 define( 'WP_TESTS_VERSION_FILE', ABSPATH . '.wp-tests-version' );26 27 $wpdb->suppress_errors();28 $installed = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'" );29 $wpdb->suppress_errors( false );30 31 $hash = get_option( 'db_version' ) . ' ' . (int) $multisite . ' ' . sha1_file( $config_file_path );32 33 if ( $installed && file_exists( WP_TESTS_VERSION_FILE ) && file_get_contents( WP_TESTS_VERSION_FILE ) == $hash )34 return;35 24 36 25 $wpdb->query( 'SET storage_engine = INNODB' ); … … 64 53 populate_network( 1, WP_TESTS_DOMAIN, WP_TESTS_EMAIL, $title, '/', $subdomain_install ); 65 54 } 66 67 file_put_contents( WP_TESTS_VERSION_FILE, $hash );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)