Changeset 47122 for trunk/tests/phpunit/tests/theme/themeDir.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/themeDir.php
r46586 r47122 20 20 add_filter( 'stylesheet_root', array( $this, '_theme_root' ) ); 21 21 add_filter( 'template_root', array( $this, '_theme_root' ) ); 22 // clear caches22 // Clear caches. 23 23 wp_clean_themes_cache(); 24 24 unset( $GLOBALS['wp_themes'] ); … … 35 35 } 36 36 37 // replace the normal theme root dir with our premade test dir37 // Replace the normal theme root directory with our premade test directory. 38 38 function _theme_root( $dir ) { 39 39 return $this->theme_root; … … 51 51 $this->assertFalse( empty( $theme ) ); 52 52 53 #echo gen_tests_array('theme', $theme);53 // echo gen_tests_array( 'theme', $theme ); 54 54 55 55 $this->assertEquals( 'WordPress Default', $theme['Name'] ); … … 80 80 $this->assertFalse( empty( $theme ) ); 81 81 82 #echo gen_tests_array('theme', $theme);82 // echo gen_tests_array( 'theme', $theme ); 83 83 84 84 $this->assertEquals( 'Sandbox', $theme['Name'] ); … … 117 117 $this->assertFalse( empty( $theme ) ); 118 118 119 #echo gen_tests_array('theme', $theme);119 // echo gen_tests_array( 'theme', $theme ); 120 120 121 121 $this->assertEquals( 'Stylesheet Only', $theme['Name'] ); … … 157 157 'Stylesheet Only', 158 158 'My Theme', 159 'My Theme/theme1', // duplicate theme should be given a unique name160 'My Subdir Theme', // theme in a subdirectory should work161 'Page Template Child Theme', // theme which inherits page templates162 'Page Template Theme', // theme with page templates for other test code159 'My Theme/theme1', // Duplicate theme should be given a unique name. 160 'My Subdir Theme', // Theme in a subdirectory should work. 161 'Page Template Child Theme', // Theme which inherits page templates. 162 'Page Template Theme', // Theme with page templates for other test code. 163 163 'Theme with Spaces in the Directory', 164 164 'Internationalized Theme',
Note: See TracChangeset
for help on using the changeset viewer.