Ticket #28692: 28692.2.diff
File 28692.2.diff, 1001 bytes (added by , 10 years ago) |
---|
-
tests/phpunit/includes/testcase.php
35 35 global $wpdb, $wp_query, $post; 36 36 $this->expectedDeprecated(); 37 37 $wpdb->query( 'ROLLBACK' ); 38 if ( is_multisite() ) { 39 while ( ms_is_switched() ) { 40 restore_current_blog(); 41 } 42 } 38 43 $wp_query = new WP_Query(); 39 44 $post = null; 40 45 remove_theme_support( 'html5' ); -
tests/phpunit/tests/ms.php
1512 1512 function _setup_host_request( $domain, $path ) { 1513 1513 global $current_site, $current_blog, $wpdb, $table_prefix; 1514 1514 1515 $table_prefix = 'wptests_'; 1515 1516 $current_site = $current_blog = null; 1516 1517 $_SERVER['HTTP_HOST'] = $domain; 1517 1518 $_SERVER['REQUEST_URI'] = $path;