Changeset 28943
- Timestamp:
- 07/01/2014 06:51:46 PM (10 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r28910 r28943 24 24 require_once $config_file_path; 25 25 26 define( 'WP_TESTS_TABLE_PREFIX', $table_prefix ); 26 27 define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/../data' ); 27 28 -
trunk/tests/phpunit/includes/testcase.php
r27795 r28943 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; -
trunk/tests/phpunit/tests/ms.php
r28910 r28943 1511 1511 */ 1512 1512 function _setup_host_request( $domain, $path ) { 1513 global $current_site, $current_blog, $wpdb, $table_prefix; 1514 1513 global $current_site, $current_blog, $table_prefix; 1514 1515 $table_prefix = WP_TESTS_TABLE_PREFIX; 1515 1516 $current_site = $current_blog = null; 1516 1517 $_SERVER['HTTP_HOST'] = $domain;
Note: See TracChangeset
for help on using the changeset viewer.