Changeset 38907 for trunk/tests/phpunit/tests/theme.php
- Timestamp:
- 10/25/2016 10:24:57 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme.php
r38755 r38907 15 15 16 16 function setUp() { 17 global $wp_theme_directories; 18 17 19 parent::setUp(); 20 21 $backup_wp_theme_directories = $wp_theme_directories; 22 $wp_theme_directories = array( WP_CONTENT_DIR . '/themes' ); 23 18 24 add_filter( 'extra_theme_headers', array( $this, '_theme_data_extra_headers' ) ); 19 25 wp_clean_themes_cache(); … … 22 28 23 29 function tearDown() { 30 global $wp_theme_directories; 31 32 $wp_theme_directories = $this->wp_theme_directories; 33 24 34 remove_filter( 'extra_theme_headers', array( $this, '_theme_data_extra_headers' ) ); 25 35 wp_clean_themes_cache(); 26 36 unset( $GLOBALS['wp_themes'] ); 37 27 38 parent::tearDown(); 28 39 }
Note: See TracChangeset
for help on using the changeset viewer.