Changeset 25409 for trunk/tests/phpunit/tests/theme/themeDir.php
- Timestamp:
- 09/12/2013 06:37:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/themeDir.php
r25402 r25409 7 7 */ 8 8 class Tests_Theme_ThemeDir extends WP_UnitTestCase { 9 protected $deprecated_functions = array( 'get_theme', 'get_themes', 'get_theme_data', 'get_current_theme', 'get_broken_themes' );10 9 11 10 function setUp() { … … 41 40 } 42 41 42 /** 43 * @expectedDeprecated get_theme 44 * @expectedDeprecated get_themes 45 */ 43 46 function test_theme_default() { 44 47 $themes = get_themes(); … … 68 71 } 69 72 73 /** 74 * @expectedDeprecated get_theme 75 * @expectedDeprecated get_themes 76 */ 70 77 function test_theme_sandbox() { 71 78 $theme = get_theme('Sandbox'); … … 99 106 } 100 107 101 // a css only theme 108 /** 109 * A CSS-only theme 110 * 111 * @expectedDeprecated get_themes 112 */ 102 113 function test_theme_stylesheet_only() { 103 114 $themes = get_themes(); … … 127 138 } 128 139 140 /** 141 * @expectedDeprecated get_themes 142 */ 129 143 function test_theme_list() { 130 144 $themes = get_themes(); … … 154 168 } 155 169 170 /** 171 * @expectedDeprecated get_themes 172 * @expectedDeprecated get_broken_themes 173 */ 156 174 function test_broken_themes() { 157 175 $themes = get_themes(); … … 166 184 } 167 185 186 /** 187 * @expectedDeprecated get_themes 188 */ 168 189 function test_page_templates() { 169 190 $themes = get_themes(); … … 176 197 } 177 198 199 /** 200 * @expectedDeprecated get_theme_data 201 */ 178 202 function test_get_theme_data_top_level() { 179 203 $theme_data = get_theme_data( DIR_TESTDATA . '/themedir1/theme1/style.css' ); … … 192 216 } 193 217 218 /** 219 * @expectedDeprecated get_theme_data 220 */ 194 221 function test_get_theme_data_subdir() { 195 222 $theme_data = get_theme_data( $this->theme_root . '/subdir/theme2/style.css' );
Note: See TracChangeset
for help on using the changeset viewer.