Changeset 38907 for trunk/tests/phpunit/includes/bootstrap.php
- Timestamp:
- 10/25/2016 10:24:57 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r38858 r38907 17 17 * See: https://github.com/sebastianbergmann/phpunit/issues/325 18 18 */ 19 global $wpdb, $current_site, $current_blog, $wp_rewrite, $shortcode_tags, $wp, $phpmailer ;19 global $wpdb, $current_site, $current_blog, $wp_rewrite, $shortcode_tags, $wp, $phpmailer, $wp_theme_directories; 20 20 21 21 if ( !is_readable( $config_file_path ) ) { … … 54 54 $phpmailer = new MockPHPMailer(); 55 55 56 // Add a symlink to the empty default theme to the themes directory, so it can be used for the tests. 57 _symlink_default_theme(); 56 // Set the theme to our special empty theme, to avoid interference from the current Twenty* theme. 57 if ( ! defined( 'WP_DEFAULT_THEME' ) ) { 58 define( 'WP_DEFAULT_THEME', 'default' ); 59 } 60 $wp_theme_directories = array( DIR_TESTDATA . '/themedir1' ); 58 61 59 62 system( WP_PHP_BINARY . ' ' . escapeshellarg( dirname( __FILE__ ) . '/install.php' ) . ' ' . escapeshellarg( $config_file_path ) . ' ' . $multisite );
Note: See TracChangeset
for help on using the changeset viewer.